Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-25 11:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found