Mark McClain
mark at gsoa.net
Sat Jan 31 10:24:41 EST 2004
You want to use a combination of: req.clength member and req.read() method look at the request object documentation for more information. mark On Jan 31, 2004, at 3:56 AM, Colin Fox wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Khurram wrote: > | Please read the cgi source for handling form data. I think that would > be the > | best example. > > I'm sorry - which cgi source? Something to do with mod_python, or cgis > in general? > > I have CGIs already which handle form data. My problem is that I'm > trying to write a mod-python handler which can deal with form data, and > it doesn't work the way the CGI does. > > In a FORM->POST, the Content-Length is set to the number of bytes in > the > form data, and the CGI reads that much from stdin. > > I tried that technique with my mod_python handler, and I get nothing. > > Any suggestions? > > cf > > - -- > Colin Fox > President, CF Consulting Inc. > cfox at cfconsulting.ca > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFAG23CoaQ1/feGlJoRApEZAKCK5kbKGbcHYwrI3LESW8GHfxk5DgCdHuy7 > 26QPbT4O8luLKVRXe9/T6wE= > =lgJp > -----END PGP SIGNATURE----- > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|