[issue10487] http.server doesn't process Status header from CGI scripts

2015-10-01 Thread Martin Panter

Martin Panter added the comment:

Issue 13893 was closed as a duplicate of this issue. There are patches and 
modified code there that may be worth looking at though.

--
nosy: +martin.panter
superseder: Make CGIHTTPServer capable of redirects (and status other than 200) 
-> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10487] http.server doesn't process Status header from CGI scripts

2012-03-16 Thread Senthil Kumaran

Changes by Senthil Kumaran sent...@uthcode.com:


--
assignee:  - orsenthil

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10487
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10487] http.server doesn't process Status header from CGI scripts

2012-03-16 Thread Senthil Kumaran

Changes by Senthil Kumaran sent...@uthcode.com:


--
superseder:  - Make CGIHTTPServer capable of redirects (and status other than 
200)

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10487
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10487] http.server doesn't process Status header from CGI scripts

2012-02-05 Thread Ross Lagerwall

Changes by Ross Lagerwall rosslagerw...@gmail.com:


--
nosy: +rosslagerwall

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10487
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10487] http.server doesn't process Status header from CGI scripts

2012-02-03 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
title: http.server - doesn't process Status: header from CGI scripts - 
http.server doesn't process Status header from CGI scripts
versions: +Python 3.3 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10487
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10487] http.server - doesn't process Status: header from CGI scripts

2010-12-06 Thread Glenn Linderman

Glenn Linderman v+pyt...@g.nevcal.com added the comment:

Just to mention, with the added code from issue 10482, I was able to get a 
3-stream functionality working great in http.server and also backported it to 
2.6 CGIHTTPServer... and to properly process the Status: header on stdout.

Works very well in 2.6; Issue 8077 prevents form processing from working in 
3.2a4, but otherwise it is working there also, and the experience in 2.6 
indicates that once issue 8077 is resolved, it should work in 3.2 also.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10487
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10487] http.server - doesn't process Status: header from CGI scripts

2010-11-21 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +facundobatista, fdrake, orsenthil
type: behavior - feature request
versions:  -Python 2.6, Python 2.7, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10487
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[issue10487] http.server - doesn't process Status: header from CGI scripts

2010-11-20 Thread Glenn Linderman

New submission from Glenn Linderman v+pyt...@g.nevcal.com:

While it is documented that http.server (and Python 2's CGIHTTPServer) do not 
process the status header, and limit the usefulness of CGI scripts as a result, 
that doesn't make it less of a bug, just a documented bug.  But I guess that it 
might have to be called a feature request; I'll not argue if someone switches 
this to feature request, but I consider it a bug.

See related issue 10482 for subprocess to provide better features for avoiding 
deadlock situations.  There seems to be no general way using subprocess to 
avoid possible deadlock situations.  However, since CGI doesn't really use 
stderr much, and only for logging, which the scripts can do themselves (the 
cgi.py module even provides for such), and because CGIs generally slurp stdin 
before creating stdout, it is possible to tweak sidestep use of 
subprocess.communicate, drop the stdout PIPE, and sequence the code to process 
stdin and then stdout, and not generally deadlock (some CGI scripts that don't 
above the stdin before stdout rule, might deadlock if called with POST and 
large inputs, but those are few).

By doing this, one can then add code to handle Status: headers, and avoid 
buffering large files on output (and on input).  The tradeoff is losing the 
stderr log; when that is hooked up, some error cases can trigger deadlocks by 
writing to stderr -- hence the subprocess issue mentioned above.

--
components: Library (Lib)
messages: 121881
nosy: v+python
priority: normal
severity: normal
status: open
title: http.server - doesn't process Status: header from CGI scripts
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10487
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com