Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
fd3a7291
Commit
fd3a7291
authored
Dec 22, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF patch #1055159 via Titus Brown: Document redirect limitation.
Bug fix candidate.
parent
3f41cbb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Doc/lib/libcgihttp.tex
Doc/lib/libcgihttp.tex
+5
-0
Lib/CGIHTTPServer.py
Lib/CGIHTTPServer.py
+2
-0
No files found.
Doc/lib/libcgihttp.tex
View file @
fd3a7291
...
...
@@ -18,6 +18,11 @@ run CGI scripts.
on Mac OS it will only be able to run Python scripts within the same
process as itself.
}
\note
{
CGI scripts run by the
\class
{
CGIHTTPRequestHandler
}
class cannot execute
redirects (HTTP code 302), because code 200 (script output follows)
is sent prior to execution of the CGI script. This pre-empts the status
code.
}
The
\module
{
CGIHTTPServer
}
module defines the following class:
\begin{classdesc}
{
CGIHTTPRequestHandler
}{
request, client
_
address, server
}
...
...
Lib/CGIHTTPServer.py
View file @
fd3a7291
...
...
@@ -14,6 +14,8 @@ requests are executed sychronously.
SECURITY WARNING: DON'T USE THIS CODE UNLESS YOU ARE INSIDE A FIREWALL
-- it may execute arbitrary Python code or external programs.
Note that status code 200 is sent prior to execution of a CGI script, so
scripts cannot send other status codes such as 302 (redirect).
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment