Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Close HTTP connections and responses in tests to avoid ResourceWarnings | Martin Panter | 2016-08-12 | 1 | -1/+11 |
| | |||||
* | Issue #27125: Fix various errors like “will [be] inherited” | Martin Panter | 2016-05-29 | 1 | -2/+2 |
| | |||||
* | Issue #21069: Move test_fileno() from test_urllibnet and rewrite it | Martin Panter | 2016-04-09 | 1 | -0/+41 |
| | | | | | | | | * No longer attempts to close already freed socket file descriptor * Use socket object to be compatible with Windows * Do not use a timeout to avoid complication with non-blocking mode * Use internal localhost server rather than depending on a third party * Avoid trouble with buffered HTTP data by testing tunnelled CONNECT data | ||||
* | Issue #26499: Fixes to HTTPResponse.readline() and read1(), by Silent Ghost | Martin Panter | 2016-03-17 | 1 | -9/+70 |
| | |||||
* | Issue #26045: Add UTF-8 suggestion to error in http.client | Martin Panter | 2016-02-09 | 1 | -1/+1 |
| | | | | Based on patch by Guido van Rossum. | ||||
* | #3566: Clean up handling of remote server disconnects. | R David Murray | 2015-04-05 | 1 | -1/+91 |
| | | | | | | | | | | | | | | | This changeset does two things: introduces a new RemoteDisconnected exception (that subclasses ConnectionResetError and BadStatusLine) so that a remote server disconnection can be detected by client code (and provides a better error message for debugging purposes), and ensures that the client socket is closed if a ConnectionError happens, so that the automatic re-connection code can work if the application handles the error and continues on. Tests are added that confirm that a connection is re-used or not re-used as appropriate to the various combinations of protocol version and headers. Patch by Martin Panter, reviewed by Demian Brecht. (Tweaked only slightly by me.) | ||||
* | Merge: #23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None. | R David Murray | 2015-03-22 | 1 | -15/+54 |
|\ | |||||
| * | #23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None. | R David Murray | 2015-03-22 | 1 | -15/+54 |
| | | | | | | | | | | | | | | | | Some http servers will reject PUT, POST, and PATCH requests if they do not have a Content-Length header. Patch by James Rutherford, with additional cleaning up of the 'request' documentation by me. | ||||
* | | Issue #22928: Disabled HTTP header injections in http.client. | Serhiy Storchaka | 2015-03-12 | 1 | -0/+57 |
|\ \ | |/ | | | | | Original patch by Demian Brecht. | ||||
| * | Issue #22928: Disabled HTTP header injections in http.client. | Serhiy Storchaka | 2015-03-12 | 1 | -0/+57 |
| | | | | | | | | Original patch by Demian Brecht. | ||||
* | | Merge 3.4 (httplib) | Victor Stinner | 2015-02-27 | 1 | -0/+3 |
|\ \ | |/ | |||||
| * | Issue #23526: Fix ResourceWarning in test_httplib. Patch written by Alex Shkop. | Victor Stinner | 2015-02-27 | 1 | -0/+3 |
| | | |||||
* | | Issue #23442: Rename two member names to stay backward compatible | Berker Peksag | 2015-02-20 | 1 | -0/+61 |
| | | | | | | | | | | | | with the constants in http.client. Initial patch by Demian Brecht. | ||||
* | | Issue #23439: Add missing entries to http.client.__all__. | Berker Peksag | 2015-02-20 | 1 | -0/+15 |
|\ \ | |/ | | | | | | | | | | | Also, document the LineTooLong exception since it can be raised by the members of public API (e.g. http.client.HTTPResponse). Patch by Martin Panter. | ||||
| * | Issue #23439: Add missing entries to http.client.__all__. | Berker Peksag | 2015-02-20 | 1 | -0/+15 |
| | | | | | | | | | | | | | | Also, document the LineTooLong exception since it can be raised by the members of public API (e.g. http.client.HTTPResponse). Patch by Martin Panter. | ||||
* | | Issue #13128: Print response headers for CONNECT requests when debuglevel > 0. | Berker Peksag | 2015-02-03 | 1 | -5/+18 |
| | | | | | | | | Patch by Demian Brecht. | ||||
* | | merge 3.4 (#19996) | Benjamin Peterson | 2015-01-26 | 1 | -0/+10 |
|\ \ | |/ | |||||
| * | handle headers with no key (closes #19996) | Benjamin Peterson | 2015-01-26 | 1 | -0/+10 |
| | | | | | | | | Patch by Cory Benfield. | ||||
* | | merge from 3.4 | Senthil Kumaran | 2015-01-25 | 1 | -25/+42 |
|\ \ | |/ | | | | | | | | | | | Increase http.client.HTTPConnection test coverage. Added a new tunnel test to verify setting of _tunnel_host, _tunnel_port, _tunnel_headers attributes on HTTPConnection object. | ||||
| * | Increase http.client.HTTPConnection test coverage. | Senthil Kumaran | 2015-01-25 | 1 | -25/+42 |
| | | | | | | | | | | Added a new tunnel test to verify setting of _tunnel_host, _tunnel_port, _tunnel_headers attributes on HTTPConnection object. | ||||
* | | http.client: disable Nagle's algorithm (closes #23302) | Benjamin Peterson | 2015-01-23 | 1 | -22/+3 |
| | | | | | | | | Patch by Demian Brecht. | ||||
* | | merge 3.4 | Benjamin Peterson | 2014-12-13 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | make sure server threads get cleaned up | Benjamin Peterson | 2014-12-13 | 1 | -0/+1 |
| | | |||||
* | | Issue #22095: Fixed HTTPConnection.set_tunnel with default port. The port | Serhiy Storchaka | 2014-12-12 | 1 | -3/+5 |
|\ \ | |/ | | | | | value in the host header was set to "None". Patch by Demian Brecht. | ||||
| * | Issue #22095: Fixed HTTPConnection.set_tunnel with default port. The port | Serhiy Storchaka | 2014-12-12 | 1 | -3/+5 |
| | | | | | | | | value in the host header was set to "None". Patch by Demian Brecht. | ||||
* | | merge 3.4 (#22959) | Benjamin Peterson | 2014-12-07 | 1 | -0/+14 |
|\ \ | |/ | |||||
| * | HTTPSConnection: prefer the context's check_hostname attribute over the ↵ | Benjamin Peterson | 2014-12-07 | 1 | -0/+14 |
| | | | | | | | | constructor parameter (#22959) | ||||
* | | Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails. | Serhiy Storchaka | 2014-12-01 | 1 | -1/+21 |
|\ \ | |/ | | | | | Original patch by Martin Panter. | ||||
| * | Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails. | Serhiy Storchaka | 2014-12-01 | 1 | -1/+24 |
| | | | | | | | | Original patch by Martin Panter. | ||||
* | | merge 3.4 | Benjamin Peterson | 2014-11-26 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | don't fail tests when www.python.org can't be validated by the system | Benjamin Peterson | 2014-11-25 | 1 | -0/+1 |
| | | |||||
* | | merge with 3.4 | Georg Brandl | 2014-11-05 | 1 | -12/+8 |
|\ \ | |/ | |||||
| * | test_httplib: use self-signed.pythontest.net for verification test with ↵ | Georg Brandl | 2014-11-05 | 1 | -12/+8 |
| | | | | | | | | non-root-CA cert | ||||
* | | merge 3.4 (#22417) | Benjamin Peterson | 2014-11-03 | 1 | -9/+40 |
|\ \ | |/ | |||||
| * | PEP 476: enable HTTPS certificate verification by default (#22417) | Benjamin Peterson | 2014-11-03 | 1 | -9/+40 |
| | | | | | | | | Patch by Alex Gaynor with some modifications by me. | ||||
* | | Issue #21566: Make use of socket.listen() default backlog. | Charles-François Natali | 2014-07-23 | 1 | -2/+2 |
| | | |||||
* | | merge from 3.4 | Senthil Kumaran | 2014-04-14 | 1 | -2/+48 |
|\ \ | |/ | | | | | | | Issue #7776: Fix ``Host:'' header and reconnection when using http.client.HTTPConnection.set_tunnel() Patch by Nikolaus Rath. | ||||
| * | Issue #7776: Fix ``Host:'' header and reconnection when using ↵ | Senthil Kumaran | 2014-04-14 | 1 | -2/+48 |
| | | | | | | | | | | | | http.client.HTTPConnection.set_tunnel(). Patch by Nikolaus Rath. | ||||
* | | Issue #19009 | Kristján Valur Jónsson | 2014-03-19 | 1 | -34/+269 |
|/ | | | | Enhance HTTPResponse.readline() performance | ||||
* | Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵ | Serhiy Storchaka | 2014-02-08 | 1 | -3/+3 |
|\ | | | | | | | tests. | ||||
| * | Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵ | Serhiy Storchaka | 2014-02-08 | 1 | -3/+3 |
| | | | | | | | | tests. | ||||
* | | Issue #20007: HTTPResponse.read(0) no more prematurely closes connection. | Serhiy Storchaka | 2013-12-17 | 1 | -0/+3 |
|\ \ | |/ | | | | | Original patch by Simon Sapin. | ||||
| * | Issue #20007: HTTPResponse.read(0) no more prematurely closes connection. | Serhiy Storchaka | 2013-12-17 | 1 | -0/+3 |
| | | | | | | | | Original patch by Simon Sapin. | ||||
* | | merge with 3.3 | Georg Brandl | 2013-10-27 | 1 | -0/+9 |
|\ \ | |/ | |||||
| * | Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more than | Georg Brandl | 2013-10-27 | 1 | -0/+9 |
| | | | | | | | | 100 headers are read. Adapted from patch by Jyrki Pulliainen. | ||||
* | | Issue #18743: Fix references to non-existant "StringIO" module | Serhiy Storchaka | 2013-08-29 | 1 | -4/+4 |
|\ \ | |/ | | | | | in docstrings and comments. | ||||
| * | Issue #18743: Fix references to non-existant "StringIO" module | Serhiy Storchaka | 2013-08-29 | 1 | -4/+4 |
| | | | | | | | | in docstrings and comments. | ||||
* | | Issue #16658: add missing return to HTTPConnection.send(). | Andrew Svetlov | 2013-04-12 | 1 | -0/+21 |
|\ \ | |/ | | | | | Patch by Jeff Knupp | ||||
| * | Issue #16658: add missing return to HTTPConnection.send(). | Andrew Svetlov | 2013-04-12 | 1 | -0/+21 |
| | | | | | | | | Patch by Jeff Knupp | ||||
* | | Issue #16723: httplib.HTTPResponse no longer marked closed when the connection | Serhiy Storchaka | 2013-02-06 | 1 | -0/+24 |
|\ \ | |/ | | | | | is automatically closed. |