(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/node212.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/module-cgi.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/node210.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/genindex.html| ]]
|
Next: 11.1.8 Debugging CGI scripts Up: 11.1 cgi Previous: 11.1.6 Installing your CGI
11.1.7 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.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/node212.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/module-cgi.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/node210.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/genindex.html| ]]
|
Next: 11.1.8 Debugging CGI scripts Up: 11.1 cgi Previous: 11.1.6 Installing your CGI
Send comments on this document to python-docs@python.org.