httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: Request bodies that are not url-encoded...
Date Fri, 05 Jan 2007 12:38:29 GMT
On Fri, 05 Jan 2007 10:54:44 +0000
Kris Leech <krisleech@interkonect.com> wrote:

> Hello, If I submit a form the request body is url-encoded (ie. 
> field1=value1&field2=value2) this string appears in request_rec's
> args field.
> 
> What if the request has a different encoding in the body (eg. XML)?

Then it's going to arrive in a request body, not in r->args
(same as an HTML form submitted by POST).

> Does args still get populated? And if it does not how do I get at the 
> request body so I can parse it myself?

Best suggestion is my .sig.  Otherwise, look at any of the existing
modules that reads POST data.

> PS. Is there any software I can use to generate request other than a 
> browser, at the moment I'm using Firefox with LiveHTTPHeaders to see 
> whats going on, but its not possible to generate custom HTTP requests.

Of course.  google cg-eye, for example.


-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

Mime
View raw message