in reply to xml response

...still trying to get back in touch with Mr. man from "BIG VENDOR", but here's a tidbit of info. When the shopping basket comes back to my web server - I have a small routine that prints out all of the environment variables.
CONTENT_TYPE=application/x-www-form-urlencoded HTTP_REFERER=https://b2brcommpreview.us.dell.com/rcomm/b2bsendor.asp CONTENT_LENGTH=3700 SERVER_PROTOCOL=HTTP/1.1 There is no query string

The content length appears to be correct - it increases or decreases depending on how large the order is, but where is the order hiding??

Replies are listed 'Best First'.
Re: Re: xml response
by davorg (Chancellor) on Jan 25, 2001 at 21:21 UTC

    Try reading $ENV{CONTENT_LENGTH} bytes from STDIN.

    --
    <http://www.dave.org.uk>

    "Perl makes the fun jobs fun
    and the boring jobs bearable" - me

Re: Re: xml response
by averylongloginname (Novice) on Jan 25, 2001 at 21:24 UTC

      POSTed content is read in through STDIN ... of course, CGI.pm handles this for you ... Try the following snippet:

      use CGI qw(:param); foreach ( param ) { print "<p>$_ : ", param($_), "</p><hr>\n"; }

      That will print out every parameter your script was passed. I bet you find an XML document in there somewhere =)