Skip Menu |

This queue is for tickets about the HTTP-Cookies CPAN distribution.

Report information
The Basics
Id: 81951
Status: resolved
Priority: 0/
Queue: HTTP-Cookies

People
Owner: Nobody in particular
Requestors: parlay [...] yopmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Provide method for accessing single cookie value
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');
This feature exists in HTTP::CookieJar::LWP. You can use it instead of this module in LWP-derived user agents.
On Wed Mar 13 09:34:28 2013, MARKSTOS wrote: Show quoted text
> 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