[ic] Reading the HTTP body from a post?
Mike Heins
interchange-users@icdevgroup.org
Fri Sep 20 13:23:01 2002
Quoting James Guillot (james.guillot@huntforpro.com):
> Hi All,
> What is the best way to read the body of an HTTP POST into an
> interchange script? (I tried [CGI...] but it only seems to work if the body of the
> message is something like foo=<?xml....). Here is an example of the message I'm
> sending to Apache/Interchange:
>
> POST /cgi-bin/risonline/punchout/setup.html HTTP/1.1
> Host: www.rustonind.com
> Connection: Keep-Alive
> From: jwguillot@huntforpro.com
> User-Agent: putty/0.52
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 1281
>
> <?xml version="1.0"?><!DOCTYPE cXML SYSTEM "cXML.dtd"><cXML
> version="1.0" payloadID="2002-04-03T16:10:15-08:00"
> timestamp="2002-04-03T16:10:15-08:00">
> <Header>.......
That isn't a POST of a content-type of x-www-form-urlencoded. It is a
PUT. A POST is a key/variable pair setup, with url encoding of the
data (i.e. %22 instead of ").
In other words, this is not compliant with HTTP spec so there is no
way Interchange would recognize it.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.513.523.7621 <mike@perusion.com>
Friends don't let friends use Outlook. -- Bob Blaylock