in reply to Re: Cannot create a cookie using HTTP::Cookies
in thread Cannot create a cookie using HTTP::Cookies

How do you create a cookie to use with LWP::UserAgent?

I'm curious, aren't cookies something created by the website you're visiting?

Also, googling shows other people have asked what the documentation means, and the module's creator replied by saying he didn't see how it could be made any clearer.

Do you have a link?

There is an example of generating a netscape cookie file in https://metacpan.org/source/GAAS/HTTP-Cookies-6.01/t/cookies.t, it also includes adding cookies to a cookie jar

I think what the author might be talking saying is check the RFC for the the meaning of those values

For example https://en.wikipedia.org/wiki/Http_cookie#Cookie_attributes

RFC 6265 - HTTP State Management Mechanism

Comment / CommentURL explained in RFC 2965 - HTTP State Management Mechanism

Or even https://metacpan.org/pod/CGI#HTTP-COOKIES

and path_spec A Boolean value indicating if the cookie is valid for the specific URL path or all the URLs in the domain. The path is used if true; otherwise, the cookie is valid for the entire domain.

http://grep.cpan.me/?q=path_spec&page=2 -> https://metacpan.org/pod/HTTP::WebTest#path_spec-PATH_SPEC

That covers everything right?

  • Comment on Re^2: Cannot create a cookie using HTTP::Cookies