Christopher Sean Hilton
chris at vindaloo.com
Thu Jul 17 09:09:54 EST 2003
On Wed, Jul 16, 2003 at 10:47:37PM -0500, Dustin Mitchell wrote: [snip] > > If I'm not mistaken, you're using the publisher handler for this, and > curl will generate a POST request. Publisher, by virtue of using > util.FieldStorage, will try to read that POST data as form data > (depending on the content-type; it might just throw up a > NOT_IMPLEMENTED). > > So the long and short of it is that publisher will gobble your request > body, because publisher is intended to talk to a web browser, which > only sends a certain kind of data there (form data). If you'd like to > parse some other format of request body, you'll have to forgo publisher > and do that in a native handler. That handler could look very much like > what you've got: > > # note the name 'handler' is mandatory > def handler(req): > XmlData = req.readlines() # are you sure you want a list of lines? > ... > > and in your Apache config, > > PythonHandler iface > > Hope this helps. Hope I'm right. Please correct me if I am not. > The assumption that I'm using the Publisher is correct. I will try the code I have against the native handler this morning and post my results to the list. Thanks - Chris -- Chris Hilton chilton-at-vindaloo-dot-com ------------------------------------------------------------------------ "All I was doing was trying to get home from work!" -- Rosa Parks
|