If the remote side says Bad Request, then either something is different between the Curl invocation and the Perl invocation, or maybe the Curl invocation fails as well.
Your next task is to compare what Perl sends with what Curl sends and to edit your code to remove the differences. See LWP::UserAgent::ConsoleLogger and curl -s -v.
In reply to Re^4: 400 bad request curl post
by Corion
in thread 400 bad request curl post
by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |