[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-10-29 Thread Xiang Zhang
Xiang Zhang added the comment: > So I would prefer to remove it in the next version of Python, and not bother > fixing Xiang’s bug in existing versions. +1. In rfc7230, "The expectation to support HTTP/0.9 requests has been removed". -- ___ Python t

[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-10-28 Thread Martin Panter
Martin Panter added the comment: Since my last comment, I have become more confident that Python’s request parsing never supported proper HTTP 0.9. So I would prefer to remove it in the next version of Python, and not bother fixing Xiang’s bug in existing versions (unless someone offers a prac

[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-10-28 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-08-11 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +Remove HTTP 0.9 server support ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-03-19 Thread Xiang Zhang
Xiang Zhang added the comment: I think you are right. Simply run http.server.test() and then telnet to send "GET /", the client hangs. Or add a timeout to BaseHTTPRequestHandler, you can see the timeout error on server output. -- ___ Python tracker

[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-03-19 Thread Xiang Zhang
Xiang Zhang added the comment: can should be can not. And not only HTTPConnection, support for HTTP/0.9 seems to have been totally abandoned since Python3.4 in http.client. -- ___ Python tracker _

[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-03-19 Thread Xiang Zhang
New submission from Xiang Zhang: BaseHTTPRequestHandler in http.server supports HTTP/0.9. But the response for HTTP/0.9 request is implemented wrong. Response of HTTP/0.9 request returns message body directly without status line and headers. But if you inherit BaseHTTPRequestHandler and set t

[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-03-18 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +gregory.p.smith, martin.panter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-03-18 Thread Xiang Zhang
Changes by Xiang Zhang : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-03-18 Thread Martin Panter
Martin Panter added the comment: As I understand it, you are saying if you override the undocumented (but publicly-named) default_request_version attribute, HTTP 0.9 requests no longer work. I suspect it is even broken by default. My understanding is with HTTP 0.9 you should be able to send b