summaryrefslogtreecommitdiffstats
path: root/Lib/httplib.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 75407,75409-75413,75415,75419-75421 via svnmerge fromEzio Melotti2010-08-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75407 | antoine.pitrou | 2009-10-14 20:30:52 +0300 (Wed, 14 Oct 2009) | 3 lines Fix py3k warnings in the aifc module ........ r75409 | antoine.pitrou | 2009-10-14 21:01:33 +0300 (Wed, 14 Oct 2009) | 3 lines Fix py3k warnings in bsddb ........ r75410 | antoine.pitrou | 2009-10-14 21:09:45 +0300 (Wed, 14 Oct 2009) | 3 lines Silence a py3k warning claiming to affect Lib/calendar.py ........ r75411 | antoine.pitrou | 2009-10-14 21:12:54 +0300 (Wed, 14 Oct 2009) | 3 lines Fix a py3k warning in the StringIO module (exhibited in test_codecencodings_cn) ........ r75412 | antoine.pitrou | 2009-10-14 21:27:32 +0300 (Wed, 14 Oct 2009) | 3 lines Fix py3k warnings in the socket module ........ r75413 | antoine.pitrou | 2009-10-14 21:31:05 +0300 (Wed, 14 Oct 2009) | 3 lines Fix a py3k warning in the sndhdr module (found with test_email) ........ r75415 | antoine.pitrou | 2009-10-14 21:39:46 +0300 (Wed, 14 Oct 2009) | 3 lines Silence some py3k warnings claiming to affect _pyio ........ r75419 | antoine.pitrou | 2009-10-14 21:56:11 +0300 (Wed, 14 Oct 2009) | 3 lines Silence py3k warning claiming to affect the random module ........ r75420 | antoine.pitrou | 2009-10-14 22:04:48 +0300 (Wed, 14 Oct 2009) | 3 lines Fix py3k warnings in httplib ........ r75421 | antoine.pitrou | 2009-10-14 22:09:48 +0300 (Wed, 14 Oct 2009) | 3 lines Fix py3k warnings in the uuid module ........
* Merged revisions 81687 via svnmerge fromSenthil Kumaran2010-06-041-0/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81687 | senthil.kumaran | 2010-06-04 22:02:14 +0530 (Fri, 04 Jun 2010) | 3 lines Fix issue6312 - close the resp object for HEAD response. ........
* Merged revisions 80583 via svnmerge fromSenthil Kumaran2010-04-281-0/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80583 | senthil.kumaran | 2010-04-28 22:50:43 +0530 (Wed, 28 Apr 2010) | 3 lines Fixed Issue6312 - httplib fails with HEAD requests to pages with "transfer-encoding: chunked" ........
* Issue: 7291. 2.6 backport missed the headers argument. Fixed it.Senthil Kumaran2009-12-241-1/+1
|
* Merged revisions 76908 via svnmerge fromSenthil Kumaran2009-12-201-2/+14
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76908 | senthil.kumaran | 2009-12-20 11:35:13 +0530 (Sun, 20 Dec 2009) | 4 lines Fix for issue 7291 - urllib2 cannot handle https with proxy requiring auth Refactored HTTPHandler tests and added testcase for proxy authorization. ........
* Merged revisions 75134 via svnmerge fromAntoine Pitrou2009-09-291-1/+2
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75134 | antoine.pitrou | 2009-09-29 19:48:18 +0200 (mar., 29 sept. 2009) | 4 lines Issue #6790: Make it possible again to pass an `array.array` to `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.
* Backporting the changes made in revision 72880 as fix for Issue1424152.Senthil Kumaran2009-07-261-0/+29
|
* Merged revisions 70107 via svnmerge fromBenjamin Peterson2009-03-021-2/+11
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70107 | benjamin.peterson | 2009-03-02 16:41:42 -0600 (Mon, 02 Mar 2009) | 1 line give httplib.IncompleteRead a more sane repr #4308 ........
* 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
|
* Added timeout support to HTTPSConnection, through theFacundo Batista2007-05-211-4/+3
| | | | | socket.create_connection function. Also added a small test for this, and updated NEWS file.
* Some nits.Georg Brandl2007-03-261-1/+2
|
* Added a 'create_connect()' function to socket.py, which creates aFacundo Batista2007-03-231-20/+3
| | | | | connection with an optional timeout, and modified httplib.py to use this function in HTTPConnection. Applies patch 1676823.
* Bug #978833: Revert r50844, as it broke _socketobject.dup.Martin v. Löwis2007-03-231-2/+2
| | | | Will backport.
* Whitespace normalization.Tim Peters2007-01-301-1/+1
|
* Patch #1065257: Support passing open files as body inMartin v. Löwis2006-11-121-2/+24
| | | | HTTPConnection.request().
* Minor typo fixesAndrew M. Kuchling2006-07-301-2/+2
|
* Bug #978833: Really close underlying socket in _socketobject.close.Martin v. Löwis2006-07-261-2/+2
| | | | | Fix httplib.HTTPConnection.getresponse to not close the socket if it is still needed for the response.
* RFE #1472176: In httplib, don't encode the netloc and hostname with "idna" ↵Georg Brandl2006-05-031-4/+13
| | | | if not necessary.
* Move "httpresponses" dict from urllib2 to httplib where it belongs.Georg Brandl2006-02-171-1/+50
|
* bug [ 1296004 ] MemoryError in httplibGeorg Brandl2005-09-291-4/+7
|
* bug [ 1155638 ] self.length shield exception in httplibGeorg Brandl2005-06-261-0/+1
|
* Fix for SF bug 988120 via patch 1061941.Jeremy Hylton2004-11-071-2/+4
| | | | If read() returned less than the number of bytes request, the full amount was subtracted from length instead of the actually read amount.
* SF bug #1046855: httplib index out of rangeRaymond Hettinger2004-10-141-1/+1
|
* Patch #1025790: Add status code constants to httplib.Martin v. Löwis2004-09-181-3/+62
|
* Remove tabs.Brett Cannon2004-09-151-2/+2
|
* Strip square brackets from IPv6 address.Martin v. Löwis2004-09-141-0/+2
|
* missed the obvious test case and corresponding fixSkip Montanaro2004-09-141-1/+2
|
* Search from the end of the host/port combination to find the colon whichSkip Montanaro2004-09-141-1/+1
| | | | separates ip address from the port to accommodate ipv6 addresses.
* Patch #800236: add HTTPResponse.getheaders().Martin v. Löwis2004-08-181-0/+6
|
* SF bug 874842 and patch 997626: httplib bugsJeremy Hylton2004-08-071-10/+20
| | | | | | Hack httplib to work with broken Akamai proxies. Make sure that httplib doesn't add extract Accept-Encoding or Content-Length headers if the client has already set them.
* Fix a bug that robotparser starves memory when the server responsesHye-Shik Chang2004-06-051-1/+9
| | | | | in HTTP/0.9 due to dissonance of httplib.LineAndFileWrapper and urllib.addbase.
* Replace str.find()!=1 with the more readable "in" operator.Raymond Hettinger2004-05-041-2/+2
|
* Whitespace normalization.Tim Peters2004-01-181-2/+2
|
* Patch #831747: Add skip_accept_encoding parameter to putrequest.Martin v. Löwis2003-11-191-3/+7
|
* fixed obvious bug in _send_header as per SF bug #831271Alex Martelli2003-11-091-2/+1
| | | | (same as commit of Sun Nov 2 to the release23-maint branch)