Skip to content

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

@oalders

Description

@oalders

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions