The POST short-cut provided by HTTP::Request::Common expects to encode a list of parameters as a content-type of application/x-www-form-urlencoded. This isn't what you want to have done, so you can't use HTTP::Request::Common in this case.
Look at HTTP::Request instead, and create a request as such:
my $request = HTTP::Request->new(POST => $url); $request->content($xml);
Then you can pass $request as the parameter to the $ua->request() method.
--rjray
In reply to Re: xml request
by rjray
in thread xml request
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |