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

Tyler Eaves tyler at tylereaves.com
Sun Aug 19 13:43:33 EDT 2001


Gillou wrote:

> Hi,
> 
> I made this change to the Window registry for this and it does not work
> (http error 500)
> 
> Directory
> 
"HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters\Scrip
> t Map"
> Key ".py"
> Value "C:\Python21\python.exe %s %s"
> 
> Did I forget something ?
> 
> TIA
> 
> --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