Python 2.1 CGI engine for PWS (Win98) => Error 500

Gillou nospam at bigfoot.com
Sun Aug 19 19:58:52 CEST 2001


Done, of course, I thried with the python builtin tets script:

import cgi
cgi.test()

That assumes this.
In addition, I tested with another simple one that runs (as CGI) with
Apache.

AFAIK, an encoding error does not raise an HTTP error 500 but a mess on the
browser.

Thanks

--Gillou

>
> Make sure you have the folloing (or equivilant) at the top of your CGI.
>
> print "Content-type: text/html" #Or text/plain if serving plain text or
> image/jpeg if serving a jpeg etc.
> print ""
>
> That ought to fix it.
>
>





More information about the Python-list mailing list