Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: HTTP::Cookies -> CookieJar

by hippo (Archbishop)
on Mar 31, 2025 at 11:21 UTC ( [id://11164527]=note: print w/replies, xml ) Need Help??


in reply to HTTP::Cookies -> CookieJar

The use of HTTP::CookieJar is recommended over HTTP::Cookies

Recommended by whom? Each of those modules has its own pros and cons and it is up to the user (coder) to choose between them given any particular scenario. They each have roughly 6,400 total dependents (according to MetaCPAN) so it isn't like one or other is dominating the scene.

If you want to use HTTP::Tiny for whatever reason then you have to put up with the consequences of that choice such as the manual translation between formats which you have shown. Hopefully it isn't too brittle.


🦛

Replies are listed 'Best First'.
Re^2: HTTP::Cookies -> CookieJar
by Anonymous Monk on Mar 31, 2025 at 14:33 UTC

      Something that got me confused here is this: you're concerned about recommendations from LWP::UserAgent docs when instead you picked HTTP::Tiny for the task. But anyway, HTTP::Tiny also mentions this:

      Cookie support requires HTTP::CookieJar or an equivalent class.

      return on_success() or die;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11164527]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2025-06-14 21:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.