Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide method for accessing single cookie value [rt.cpan.org #81951] #34

Open
oalders opened this issue Mar 30, 2017 · 0 comments
Open

Comments

@oalders
Copy link
Member

oalders commented Mar 30, 2017

Migrated from rt.cpan.org#81951 (status was 'open')

Requestors:

From [email protected] on 2012-12-13 22:36:05:

If I want to copy the PHPSESSID value from the cookie for site
example.com I either have to call scan() or directly access the cookie
internals like $cookie_jar->{COOKIES}{'example.com'}{'/'}{PHPSESSID} and
then access the 2nd element in the array reference. Please consider
adding a convenience method to allow easier access to cookie values.
I would like to be able to do $cookie_jar->get_cookie('example.com',
'PHPSESSID');

From [email protected] on 2013-03-13 13:34:28:

This feature exists in HTTP::CookieJar::LWP. You can use it instead of 
this module in LWP-derived user agents. 

From [email protected] on 2016-10-25 17:04:46:

On Wed Mar 13 09:34:28 2013, MARKSTOS wrote:
> This feature exists in HTTP::CookieJar::LWP. You can use it instead of 
> this module in LWP-derived user agents. 

This can also be done via https://metacpan.org/pod/HTTP::CookieMonster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant