cgi

Gigs_ gigs at hi.t-com.hr
Wed Aug 29 13:24:54 EDT 2007


i have simple page and form that ask for name and color and cgi script that 
print that name in another page and background in chosen color

all the time this error pop:
Error response

Error code 501.

Message: Can only POST to CGI scripts.

Error code explanation: 501 = Server does not support this operation.

i run it on windows xpand this is server that i use:

webdir = '.'
port   = 80

import os, sys
from BaseHTTPServer import HTTPServer
from CGIHTTPServer  import CGIHTTPRequestHandler

os.chdir(webdir)
srvraddr = ("", port)
srvrobj  = HTTPServer(srvraddr, CGIHTTPRequestHandler)
srvrobj.serve_forever()

can someone help me?



thanks!



More information about the Python-list mailing list