L.S.,
Followed 'try it out'example "Running a CGI script" on page 469 but fails. Below some details for you that you might need to tackle and process this problem.
EasyCGIServer.py and EasyHTTPServer.py run without problem in Komodo. Once fired up the EasyCGIServer.py visiting
http://localhost:8000/cgi-bin/hello.cgiis not possible. Firefox cannot access this cgi-bin folder or execute the cgi script. Similar response occurs with internet explorer.
The following error occurs in my Firefox (v1.5.0.1) browser:
---------------------------------------------------------------------
Error response
Error code 403.
Message: CGI script is not a plain file ('/cgi-bin/').
Error code explanation: 403 = Request forbidden -- authorization will not help.
---------------------------------------------------------------------
There is no "Hello world" seen in my webbrowser as denoted on page 470.
Similar event happes after cmd ==> e:\essay_py attrib -r -h -s -a cgi-bin. While dir /q tells I am the one who has acces to this e:\essay_py\cgi-bin folder. What have I forgot to do (some path variable wrong?), and what does the "Environment variables" in the statement on page 471 means?
Thx in advance for help on this topic
Extra Info:
target folder for example on p469 is e:\eassy_py\cgi-bin\.
py script folder : e:\essay_py\ (contains: EasyCGIServer.py, PrintEnvironment.py, EasyHTTPServer.py)
cgi script folder e:\essay_py\cgi-bin\ (hello.cgi, PrintEnvironment.cgi)
py scripts also downloaded from your web site and still doesn't work!
os system: Windows XP, SP1.
Python v2.4 in c:\prolang\python24. Used ActiveState version of python, run scripts using Komodo v3.5. Have not set any environment variables (includes also none for e:\essay_py\cgi-bin\) myself.