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

Re^3: Using LWP (or some other module) to Dowload HTML with Cookie Session ID

by Corion (Patriarch)
on Nov 29, 2022 at 08:17 UTC ( #11148430=note: print w/replies, xml ) Need Help??


in reply to Re^2: Using LWP (or some other module) to Dowload HTML with Cookie Session ID
in thread Using LWP (or some other module) to Dowload HTML with Cookie Session ID

No - please use $res->decoded_content instead of reaching into the HTTP::Response hash.

The difference between LWP::UserAgent and Mojo::UserAgent is mostly that LWP::UserAgent doesn't allow for parallel requests. Mojo::UserAgent is a bit more complex due to allowing for parallelism, but it also offers some more convenience stuff like handling JSON replies directly.

  • Comment on Re^3: Using LWP (or some other module) to Dowload HTML with Cookie Session ID
  • Download Code

Replies are listed 'Best First'.
Re^4: Using LWP (or some other module) to Dowload HTML with Cookie Session ID
by Leudwinus (Scribe) on Nov 29, 2022 at 22:29 UTC

    Ok, thank you again Corion! As you can clearly tell, I have no idea what I am doing!

    And thank you for clarifying the differences between LWP::UserAgent and Mojo::UserAgent.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2023-03-28 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (67 votes). Check out past polls.

    Notices?