CGI server by Python
Alex Martelli
aleax at aleax.it
Thu Sep 26 07:54:54 EDT 2002
Brian Lee wrote:
> Hi,
>
> I tested CGIHTTPServer.py in Python 2.2 and found that cgi files in
> sub directory does not run. Does anybody know about this?
...
> avante.xxx.co.kr - - [26/Sep/2002 19:20:24] code 403, message CGI script
> is not a plain file ('/cgi-bin/a') avante.xxx.co.kr -
Exactly as it says, /cgi-bin/a is not a plain file (it's a directory!)
and CGIHTTPServer.py is written to support plain files right under
cgi-bin only. See the parsing in function run_cgi around line 100
and following of that file in your Python library directory. If you
don't like the way it parses things, it ain't hard to modify...
Alex
More information about the Python-list
mailing list