summaryrefslogtreecommitdiffstats
path: root/Lib/httplib.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20007: HTTPResponse.read(0) no more prematurely closes connection.Serhiy Storchaka2013-12-171-1/+1
| | | | Original patch by Simon Sapin.
* Issue #15633: httplib.HTTPResponse is now mark closed when the server sends ↵Antoine Pitrou2013-02-021-4/+9
| | | | less than the advertised Content-Length.
* Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
| | | | Patch by Serhiy Storchaka.
* Issue #16298: In HTTPResponse.read(), close the socket when there is no ↵Antoine Pitrou2012-12-151-0/+4
| | | | | | Content-Length and the incoming stream is finished. Patch by Eran Rundstein.
* Issue #16037: Limit httplib's _read_status() function to work around brokenChristian Heimes2012-09-251-1/+3
| | | | | HTTP servers and reduce memory usage. It's actually a backport of a Python 3.2 fix. Thanks to Adrien Kunysz.
* Fix Issue14721: Send Content-length: 0 for empty body () in the http.requestSenthil Kumaran2012-05-191-1/+1
|
* Fix for Issue13684 - httplib tunnel infinite loopSenthil Kumaran2012-04-231-1/+5
|
* Use raw strings for docstrings with backslashes in ASCII diagramsÉric Araujo2012-02-261-1/+1
|
* Fixes #10860: Handle empty port after port delimiter in httplibŁukasz Langa2011-10-181-1/+4
| | | | | | Thanks, Shawn Ligocki! 3.x version will come as a separate patch.
* Issue13073 - Address review comments and add versionchanged information in ↵Senthil Kumaran2011-10-051-3/+3
| | | | the docs.
* Remove the un-exercised in-module test code.Senthil Kumaran2011-08-101-68/+0
|
* #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-1/+1
|
* Merged revisions 87373,87381 via svnmerge fromAntoine Pitrou2010-12-181-5/+24
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k BaseHTTPServer isn't fixed, this would require too much refactoring. ........ r87373 | senthil.kumaran | 2010-12-18 17:55:23 +0100 (sam., 18 déc. 2010) | 3 lines Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by Antoine Pitrou ........ r87381 | antoine.pitrou | 2010-12-18 18:59:18 +0100 (sam., 18 déc. 2010) | 3 lines NEWS entry for r87373 ........
* Merged revisions 86450 via svnmerge fromSenthil Kumaran2010-11-141-0/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86450 | senthil.kumaran | 2010-11-13 20:27:49 +0800 (Sat, 13 Nov 2010) | 3 lines Fix Issue5111 - Wrap the Ipv6 host with [] in the Host header ........
* Merged revisions 85205 via svnmerge fromSenthil Kumaran2010-10-031-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85205 | senthil.kumaran | 2010-10-03 23:52:42 +0530 (Sun, 03 Oct 2010) | 3 lines Fix Issue10012 - httplib headers, which are (sometimes mistakenly) int are explicitly cast to str (bytes - in py3k). ........
* Merged revisions 85169 via svnmerge fromSenthil Kumaran2010-10-021-13/+13
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85169 | senthil.kumaran | 2010-10-02 16:03:13 +0530 (Sat, 02 Oct 2010) | 3 lines Use proper variable name 'data' instead of 'str' in the send method. ........
* Fix Issue1327971: HTTPResponse should expose a proper fileno attributeSenthil Kumaran2010-09-211-0/+3
|
* Forward port r70643 (#5542) + part of r83120 (just remove the comment)Victor Stinner2010-07-241-30/+12
| | | | | | | | Remove special logic that closes HTTPConnection socket on EPIPE. If the socket is closed, the client has no chance to read the response from the server. EPIPE means that it isn't possible to write more data from the socket, but not that it is impossible to read.
* Fix issue6312 - close the resp object for HEAD response.Senthil Kumaran2010-06-041-0/+1
|
* Fixed Issue6312 - httplib fails with HEAD requests to pages with ↵Senthil Kumaran2010-04-281-0/+3
| | | | "transfer-encoding: chunked"
* Issue #7427: improve the representation of httplib.BadStatusLine exceptions.Dirkjan Ochtman2010-02-241-0/+2
|
* issue3972: HTTPConnection and HTTPSConnection now support aGregory P. Smith2010-01-031-5/+9
| | | | | | source_address parameter. Also cleans up an annotation in the socket documentation.
* Fix for issue 7291 - urllib2 cannot handle https with proxy requiring authSenthil Kumaran2009-12-201-3/+15
| | | | Refactored HTTPHandler tests and added testcase for proxy authorization.
* Fix py3k warnings in httplibAntoine Pitrou2009-10-141-4/+4
|
* Issue #6790: Make it possible again to pass an `array.array` toAntoine Pitrou2009-09-291-1/+2
| | | | `httplib.HTTPConnection.send`. Patch by Kirk McDonald.
* Fixes issue #6838: use a list to accumulate the value instead of repeatedly ↵Chris Withers2009-09-041-12/+9
| | | | concatenating strings.
* comment typo fixGregory P. Smith2009-08-201-1/+1
|
* Revert the changes from r74463, they were causing test_xmlrpc to fail.Gregory P. Smith2009-08-191-9/+1
| | | | | | | | | We do not need to force a close when using socket buffering on a httplib.HTTPRequest as the library does not support streaming requests so there should never been extra data beyond the end of the current request to have left over in the requests socket buffer. see http://bugs.python.org/issue6724
* Force the http connection to close after any request returned whenGregory P. Smith2009-08-151-1/+14
| | | | | | | buffering=True as our buffered data is not known to the HTTPConnection and may contain data needed by a future request if the connection were left open. See http://bugs.python.org/issue2576 and http://bugs.python.org/issue4879.
* Fixed Issue1424152, urllib2 fails with HTTPS over Proxy.Senthil Kumaran2009-05-241-0/+29
|
* give httplib.IncompleteRead a more sane repr #4308Benjamin Peterson2009-03-021-2/+11
|
* Issue 4879: Allow buffering for HTTPResponseKristján Valur Jónsson2009-01-111-16/+28
|
* Issue 4336: HTTPRequest._send_output() now deals with the case of the ↵Kristján Valur Jónsson2009-01-091-7/+8
| | | | message body not being a string. This allows clients to use endheaders(message_body) instead of endheaders() + send(message_body) without making any extra checks.
* Send HTTP headers and message body in a single send() call.Jeremy Hylton2008-11-291-24/+45
| | | | | | | | | | | | | | | | | This change addresses part of issue 4336. Change endheaders() to take an optional message_body argument that is sent along with the headers. Change xmlrpclib and httplib's other methods to use this new interface. It is more efficient to make a single send() call, which should get the entire client request into one packet (assuming it is smaller than the MTU) and will avoid the long pause for delayed ack following timeout. Also: - Add a comment about the buffer size for makefile(). - Extract _set_content_length() method and fix whitespace issues there.
* The docs for httplib.HTTPConnection.putheader() have claimed for quite a whileBrett Cannon2008-11-151-6/+3
| | | | | that their could be an arbitrary number of values passed in. Turns out the code did not match that. The code now matches the docs.
* Move test.test_support.catch_warning() to the warnings module, rename itBrett Cannon2008-09-021-4/+5
| | | | | | | | | | | catch_warnings(), and clean up the API. While expanding the test suite, a bug was found where a warning about the 'line' argument to showwarning() was not letting functions with '*args' go without a warning. Closes issue 3602. Code review by Benjamin Peterson.
* Silence the DeprecationWarning raised in httplib when mimetools is imported.Brett Cannon2008-08-161-1/+5
|
* - Issue #3094: httplib.HTTPSConnection Host: headers no longer include theGregory P. Smith2008-07-071-1/+1
| | | | | redundant ":443" port number designation when the connection is using the default https port (443).
* Fixed the semantic of timeout for socket.create_connection andFacundo Batista2008-05-291-2/+3
| | | | | | all the upper level libraries that use it, including urllib2. Added and fixed some tests, and changed docs correspondingly. Thanks to John J Lee for the patch and the pusing, :)
* #1627: httplib now ignores negative Content-Length headers.Georg Brandl2008-02-241-0/+3
|
* #900744: If an invalid chunked-encoding header is sent by a server,Georg Brandl2008-02-241-1/+7
| | | | | httplib will now raise IncompleteRead and close the connection instead of raising ValueError.
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+0
|
* Patch #1966: Break infinite loop in httplib when the serversMartin v. Löwis2008-02-121-0/+4
| | | | | implements the chunked encoding incorrectly. Will backport to 2.5.
* Fix tpyo.Georg Brandl2007-12-081-1/+1
|
* Issue #1580738. When HTTPConnection reads the whole stream with read(),Facundo Batista2007-10-181-1/+2
| | | | | | | it closes itself. When the stream is read in several calls to read(n), it should behave in the same way if HTTPConnection knows where the end of the stream is (through self.length). Added a test case for this behaviour.
* More work on SSL support.Bill Janssen2007-09-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Much expanded test suite: All protocols tested against all other protocols. All protocols tested with all certificate options. Tests for bad key and bad cert. Test of STARTTLS functionality. Test of RAND_* functions. * Fixes for threading/malloc bug. * Issue 1065 fixed: sslsocket class renamed to SSLSocket. sslerror class renamed to SSLError. Function "wrap_socket" now used to wrap an existing socket. * Issue 1583946 finally fixed: Support for subjectAltName added. Subject name now returned as proper DN list of RDNs. * SSLError exported from socket as "sslerror". * RAND_* functions properly exported from ssl.py. * Documentation improved: Example of how to create a self-signed certificate. Better indexing.
* deprecate use of FakeSocketBill Janssen2007-08-311-0/+4
|
* Don't lie in __all__ attributes when SSL is not available: only add the SSLThomas Wouters2007-08-301-1/+2
| | | | classes when they are actually created.
* This contains a number of things:Bill Janssen2007-08-291-201/+32
| | | | | | | | | | | | | | | | 1) Improve the documentation of the SSL module, with a fuller explanation of certificate usage, another reference, proper formatting of this and that. 2) Fix Windows bug in ssl.py, and general bug in sslsocket.close(). Remove some unused code from ssl.py. Allow accept() to be called on sslsocket sockets. 3) Use try-except-else in import of ssl in socket.py. Deprecate use of socket.ssl(). 4) Remove use of socket.ssl() in every library module, except for test_socket_ssl.py and test_ssl.py.
* Bug #978833: Close https sockets by releasing the _ssl object.Martin v. Löwis2007-07-271-0/+3
|