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.