Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: "406 not acceptable" errors with LWP::UserAgent::get

by tobyink (Canon)
on Aug 19, 2020 at 11:42 UTC ( [id://11120896]=note: print w/replies, xml ) Need Help??


in reply to "406 not acceptable" errors with LWP::UserAgent::get

As an aside, there's no need to set a Host header. Yes, it's required by HTTP (unless you're still using HTTP 1.0), but LWP::UserAgent will do that for you. As would HTTP::Tiny or any other HTTP client library worth its salt.

The only benefit you get from specifying it manually is the wonderful opportunity to screw things up.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-19 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found