home *** CD-ROM | disk | FTP | other *** search
- <TITLE>Testing your CGI script -- Python library reference</TITLE>
- Next: <A HREF="../d/debugging_cgi_scripts" TYPE="Next">Debugging CGI scripts</A>
- Prev: <A HREF="../i/installing_your_cgi_script_on_a_unix_system" TYPE="Prev">Installing your CGI script on a Unix system</A>
- Up: <A HREF="../c/cgi" TYPE="Up">cgi</A>
- Top: <A HREF="../t/top" TYPE="Top">Top</A>
- <H2>10.1.7. Testing your CGI script</H2>
- Unfortunately, a CGI script will generally not run when you try it
- from the command line, and a script that works perfectly from the
- command line may fail mysteriously when run from the server. There's
- one reason why you should still test your script from the command
- line: if it contains a syntax error, the python interpreter won't
- execute it at all, and the HTTP server will most likely send a cryptic
- error to the client.
- <P>
- Assuming your script has no syntax errors, yet it does not work, you
- have no choice but to read the next section:
- <P>
-