Previous: 11.2.7 Installing your CGI Up: 11.2 cgi Next: 11.2.9 Debugging CGI scripts

11.2.8 Testing your CGI script

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.

Assuming your script has no syntax errors, yet it does not work, you have no choice but to read the next section.


Previous: 11.2.7 Installing your CGI Up: 11.2 cgi Next: 11.2.9 Debugging CGI scripts
Release 2.2.3, documentation updated on 30 May 2003.
See About this document... for information on suggesting changes.

AltStyle によって変換されたページ (->オリジナル) /