in reply to xml request
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: xml request
by patiafrica (Initiate) on Aug 05, 2002 at 09:44 UTC | |
by rjray (Chaplain) on Aug 06, 2002 at 06:45 UTC |