Dave Faraldo wrote:
>
> > Why should anyone make requests with HTTP::Request->new? Why not just use
> > HTTP::Request::Common's GET and POST functions?
>
> The GET and POST functions are "syntactic sugar" -- under the hood,
> they use HTTP::Request->new(), too -- so I suppose it's a matter
> of taste. You might not want to use them if (for instance) you don't
> want the GET, HEAD, PUT, and POST (in v1.16) functions imported into
> your namespace, or you want to do a POST with a content-type other than
> ('application/x-www-form-urlencoded', 'multipart/form-data').
>
So you just change it.
my $xml = $coder->encode_call($method,@args);
my $req = POST 'http://your.xml-rpc.server',
Content_Type => 'text/xml',
Content => $xml;
my $res = $ua->request($req);
It works great!
-Tim