in reply to Re^3: 400 bad request curl post
in thread 400 bad request curl post

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.