Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by Your Mother (Archbishop)
on Aug 18, 2020 at 23:57 UTC ( [id://11120889] : note . print w/replies, xml ) Need Help??


in reply to Re^3: "406 not acceptable" errors with LWP::UserAgent::get
in thread "406 not acceptable" errors with LWP::UserAgent::get

You can of course do whatever you want but I encourage you to use a unique agent name and version for your script; maybe even a less whimsical one than my original suggestion. :P I meant to expand on this and forgot. It’s more transparent—I’d argue more honest—better metrics for the host, and being a good netizen, from an API standpoint, is better for everyone and, I believe, reflects well on Perl compared to some other more, uh, mercenary communities. Update: response codes are at the discretion of the host code and webserver. They are frequently not particularly sensible.

  • Comment on Re^4: "406 not acceptable" errors with LWP::UserAgent::get