Michael Teo
michaelteo at bigfoot.com
Thu Nov 22 11:43:59 EST 2001
I have managed to solve the problem putting LoadModule modules/mod_python.so as the last line of all the LoadModule commands and AddModule mod_python.c as the last line of all the AddModule commands. This helps to kill the problem which I had previously. Anyway, my test CGI script is very simple. -- Start of script -- import cgi, os, sys print 'Content-type: text/plain' print print os.environ() print cgi.FieldStorage() -- End of script -- On Wed, Nov 21, 2001 at 01:51:59PM -0500, Gregory (Grisha) Trubetskoy wrote: > > It would be hard to identify the problem without the seeing the script. > POST should work fine. > > On Thu, 22 Nov 2001, Michael Teo wrote: > > > > > I have forgotten to include my system info. > > Apache 1.3.22 > > modpython 2.7.6 (compiled as a DSO with a non-threaded Python 2.1.1) > > > > Btw, the script works if I do a HTTP GET instead of a HTTP POST. > > > > On Thu, Nov 22, 2001 at 12:32:35AM +0800, Michael Teo wrote: > > > > > > Have anyone tried doing a HTTP POST from a form to a script running under > > > mod_python.cgihandler ? > > > > > > I keep getting this error > > > python_handler: Dispatch() returned nothing. > > > > > > If I disable mod_python and run this script under the CGI environment, it > > > works fine. -- Michael Teo <mailto:michaelteo at bigfoot.com> http://miketeo.net/ PGP 0x6C846A9C DB:7D:51:D4:4D:AB:97:79:E4:68:D9:07:94:36:D5:1A:6C:84:6A:9C 0x6937FB05 08:50:A1:4D:2E:45:58:60:DE:71:1F:30:63:54:EF:7B
|