in reply to Problems sending XML to webserver

A few ideas/questions:

  1. Try print $req->as_string to see what your request looks like.

  2. When do you attach the XML to the request? I don't see it anywhere in this code. Maybe something like:

    $req = new HTTP::Request ('POST', 'http://server/pay.cgi', 'text/xml', + $xml)

  3. You are sending this via a POST. That suggests to me that you need to stringify the XML and assign it to a CGI variable name.

Its not the total answer, but I hope it helps.

</ajdelore>

Replies are listed 'Best First'.
Re: Re: Problems sending XML to webserver
by tcf22 (Priest) on Aug 21, 2003 at 15:41 UTC
    I must have forgot to paste the line
    $req->content($xml);
    but it is in my code.