Rod, If you are not sure about the URL/URI, you could use the one below to see if your data is getting to the other side. I use it often to debug my HTTP POST issues: http://www.polystreet.com/cgi-bin/testformpost.pl
Also, the most common issue I have seen with XML via HTTP POST is that you expect to do a traditional form post of a name=value pair. Say $xdata is your whole xml document in one string, you can have: use HTTP::Request::Common qw(POST); use LWP::UserAgent; $aurl='http://www.polystreet.com/cgi-bin/testformpost.pl'; # some code to create your $xdata ... $ua=LWP::UserAgent->new; my $req=POST $aurl,[xmldata=>$xdata]; my $response=$ua->request($req); meanwhile most xml applications expect the xml only, so you will have to do something like: use LWP::UserAgent; #No need for Common to encode anything $aurl='http://www.polystreet.com/cgi-bin/testformpost.pl'; # some code to create your $xdata ... my $req = HTTP::Request->new(POST => $aurl); $req->header('Content-Type' => 'text/xml; charset=UTF-8', 'Content- Transfer-Encoding' => '7bit', 'Content-Description' => 'Document'); $req->content($xdata); my $response = $ua->request($req); Thanks, Poly www.polystreet.com > Haroon, > > This is the ticket. I came up with a mostly similar script so I feel > better with what I'm doing. > Mine gets a failure message that makes me think I've got the wrong POST > URL/URI which doesn't surprise me as I can't seem to get this information > out of the 'application' support people and I'm guessing my way through > permutations I see. > > Thanks for the help with this. > > > Rod > -- > "Open Source Software - Sometimes you get more than you paid for..." > >
