[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-25 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I read the issue very quickly. I don't understand why the default is not changed. -- ___ Python tracker ___

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-25 Thread Martin Panter
Martin Panter added the comment: Changing it could break existing code written for the HTTP 1.0 behaviour. The main effect mentioned at is that in HTTP 1.0 mode, a server may send a

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-25 Thread Martin Panter
Martin Panter added the comment: Victor, that chunked support for server requests is optional, and not actually required (my quote was wrong; see my message after the one you quoted). The client already does HTTP 1.1 by default: >>> http.client.HTTPConnection._http_vsn_str 'HTTP/1.1' It is

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-25 Thread STINNER Victor
STINNER Victor added the comment: For HTTP 2, I consider that the protocol is too young. I prefer to move fast on a library hosted on PyPI, rather than puting something is the stable and "frozen" stdlib. -- nosy: +haypo ___ Python tracker

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-25 Thread STINNER Victor
STINNER Victor added the comment: > Similarly, I understand HTTP 1.1 requires chunked encoding support for > requests, but there is no support for that in the Python implementation. Hum, I don't understand exactly this issue. I understood that Python only has a "partial" implementation of the

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-06 Thread Martin Panter
Martin Panter added the comment: There is already Issue 23794 discussing HTTP 2. IMO it would be interesting to implement, but I’m not sure how appropriate it would be in Python’s standard library at this stage. But working on it could drive other improvements in the existing HTTP stuff, as

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-06 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: After your remarks, maybe we can close this issue. It's not just a simple modification of a string. Do you know if we want to support the HTTP 1.1 and 2.0 in the future, directly in CPython and not via an external library (gunicorn, ...) What do you think ?

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: pong patience is one key to success ;-) -- ___ Python tracker ___ ___

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-05 Thread Martin Panter
Martin Panter added the comment: Actually RFC 7230 says “A server may reject a request that contains a message body but not a Content-Length by responding with 411 (Length Required)”, so maybe it is only clients that have to support chunked decoding. So I take back my paragraph about POST

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-05 Thread Martin Panter
Martin Panter added the comment: What are the advantages of changing the default? Just that the user no longer has to set it manually? What do you think of the problem mentioned in the documentation? If an existing HTTP 1.0 server that works fine in Python 3.5 were to suddenly have

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2014-10-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21224 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2014-04-30 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: In this case, I suggest than by default, we use the version 1.1 of HTTP and not 1.0. We are in 2014, I suppose that all the old http clients use the version 1.1 of the protocol, otherwise, the user can specify the version 1.0. --

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2014-04-17 Thread Martin Panter
Martin Panter added the comment: Looking at Issue 430706 and revision 27f36f4bf525, there is concious support for HTTP 1.1 persistent connections. Apparently the 1.0 default is just for backwards compatibility. -- nosy: +vadmium ___ Python tracker

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2014-04-14 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: Hi, With this issue, I would like to ask you to use the last version of the HTTP protocol in the BaseHTTPRequestHandler for Python 3.5. Because this one uses the version 1.0 of the protocol for the backward-compatibility.

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2014-04-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: It may not just the be the version, but the capabilities. We have ensure that capabilities are met/added before updated the version. Thanks for filing the issue. -- nosy: +orsenthil ___ Python tracker

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2014-04-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: gunicorn has an implementation of the HTTP/1.1 protocol, we can ask to the author of this project if we can use its code and reuse it in the standard library. -- ___ Python tracker rep...@bugs.python.org