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.
In reply to Re: "406 not acceptable" errors with LWP::UserAgent::get
by tobyink
in thread "406 not acceptable" errors with LWP::UserAgent::get
by jimhenry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |