summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httplib.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20007: HTTPResponse.read(0) no more prematurely closes connection.Serhiy Storchaka2013-12-171-0/+3
| | | | Original patch by Simon Sapin.
* Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more thanGeorg Brandl2013-10-271-0/+9
| | | | 100 headers are read. Adapted from patch by Jyrki Pulliainen.
* Issue #18743: Fix references to non-existant "StringIO" moduleSerhiy Storchaka2013-08-291-4/+4
| | | | in docstrings and comments.
* Issue #16658: add missing return to HTTPConnection.send().Andrew Svetlov2013-04-121-0/+21
| | | | Patch by Jeff Knupp
* Issue #16723: httplib.HTTPResponse no longer marked closed when the connectionSerhiy Storchaka2013-02-061-0/+24
|\ | | | | | | is automatically closed.
| * Issue #16723: httplib.HTTPResponse no longer marked closed when the connectionSerhiy Storchaka2013-02-061-0/+18
| | | | | | | | is automatically closed.
* | Issue #15633: httplib.HTTPResponse is now mark closed when the server sends ↵Antoine Pitrou2013-02-021-3/+34
|\ \ | |/ | | | | less than the advertised Content-Length.
| * Issue #15633: httplib.HTTPResponse is now mark closed when the server sends ↵Antoine Pitrou2013-02-021-3/+15
| | | | | | | | less than the advertised Content-Length.
* | Issue #16298: In HTTPResponse.read(), close the socket when there is no ↵Antoine Pitrou2012-12-151-2/+34
|\ \ | |/ | | | | | | | | Content-Length and the incoming stream is finished. Patch by Eran Rundstein.
| * Issue #16298: In HTTPResponse.read(), close the socket when there is no ↵Antoine Pitrou2012-12-151-1/+14
| | | | | | | | | | | | Content-Length and the incoming stream is finished. Patch by Eran Rundstein.
* | merge - Fix Issue14721: Send Content-length: 0 for empty body () in the ↵Senthil Kumaran2012-05-191-0/+28
|\ \ | |/ | | | | http.client requests
| * Fix Issue14721: Send Content-length: 0 for empty body () in the http.client ↵Senthil Kumaran2012-05-191-0/+28
| | | | | | | | requests
* | httplib test for early eof response. related to Issue13684Senthil Kumaran2012-04-291-0/+9
|\ \ | |/
| * httplib test for early eof response. related to Issue13684Senthil Kumaran2012-04-291-0/+9
| |
* | Issue #13713: fix a regression in HTTP chunked reading after 806cfe39f729Antoine Pitrou2012-01-041-15/+49
| | | | | | | | (originally issue #13464: Add a readinto() method to http.client.HTTPResponse)
* | Issue #13464: Add a readinto() method to http.client.HTTPResponse.Antoine Pitrou2011-12-061-0/+86
| | | | | | | | Patch by Jon Kuhn.
* | Issue #10860: Skip the new test if HTTPS is not availablePetri Lehtinen2011-10-261-0/+2
|\ \ | |/
| * Issue #10860: Skip the new test if HTTPS is not availablePetri Lehtinen2011-10-261-0/+2
| |
* | Merged fix for #10860 from 3.2Łukasz Langa2011-10-191-2/+22
|\ \ | |/
| * Fixes #10860: Handle empty port after port delimiter in httplibŁukasz Langa2011-10-181-2/+22
| |
* | Merge 3.2: test_httplib removes temporary filesVictor Stinner2011-09-201-0/+2
|\ \ | |/
| * test_httplib removes temporary filesVictor Stinner2011-09-201-0/+2
| |
* | Silence the altered state warning about threadgs when running test_httplib.Brett Cannon2011-08-051-4/+4
|/
* Fix closes Issue12676 - Invalid identifier used in TypeError message in ↵Senthil Kumaran2011-08-021-0/+7
| | | | | | http.client. Reported by Popa Claudiu and Patch by Santoso Wijaya.
* Issue 10825: Minor updates to the test suite.Raymond Hettinger2011-01-061-5/+5
|
* test_httplib: fix a DeprecationWarning, assertEquals=>assertEqualVictor Stinner2011-01-041-1/+1
|
* Issue3243 - Support iterable bodies in httplib. Patch contributions by ↵Senthil Kumaran2010-12-191-0/+16
| | | | Xuanji Li and Chris AtLee.
* Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by ↵Senthil Kumaran2010-12-181-0/+27
| | | | Antoine Pitrou
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-12/+12
|
* Fix Issue5111 - Wrap the Ipv6 host with [] in the Host headerSenthil Kumaran2010-11-131-0/+19
|
* Move test_httplib over to file context managers.Brett Cannon2010-10-291-27/+25
|
* Issue #9003: http.client.HTTPSConnection, urllib.request.HTTPSHandler andAntoine Pitrou2010-10-131-7/+99
| | | | | urllib.request.urlopen now take optional arguments to allow for server certificate checking, as recommended in public uses of HTTPS.
* Remove the debugging print line from the test.Senthil Kumaran2010-10-041-1/+0
|
* Fix Issue10012 - httplib headers, which are (sometimes mistakenly) int are ↵Senthil Kumaran2010-10-031-0/+9
| | | | explicitly cast to str (bytes - in py3k).
* Fix Issue8572 - httplib getheader() throws error instead of defaultSenthil Kumaran2010-08-021-1/+38
|
* Merged revisions 81691 via svnmerge fromSenthil Kumaran2010-06-041-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81691 | senthil.kumaran | 2010-06-04 22:47:09 +0530 (Fri, 04 Jun 2010) | 3 lines test verifying the resp object is closed for HEAD response. ........
* Merged revisions 80583 via svnmerge fromSenthil Kumaran2010-04-281-0/+17
| | | | | | | | | | 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" ........
* Merged revisions 78417 via svnmerge fromBenjamin Peterson2010-03-211-0/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78417 | dirkjan.ochtman | 2010-02-23 22:49:00 -0600 (Tue, 23 Feb 2010) | 1 line Issue #7427: improve the representation of httplib.BadStatusLine exceptions. ........
* Merged revisions 77263-77264 via svnmerge fromGregory P. Smith2010-01-031-2/+35
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77263 | gregory.p.smith | 2010-01-02 17:29:44 -0800 (Sat, 02 Jan 2010) | 4 lines Adds an optional source_address parameter to socket.create_connection(). For use by issue3972. ........ r77264 | gregory.p.smith | 2010-01-02 18:06:07 -0800 (Sat, 02 Jan 2010) | 5 lines issue3972: HTTPConnection and HTTPSConnection now support a source_address parameter. Also cleans up an annotation in the socket documentation. ........
* [NOTE: the original bug doesn't exist in py3k but this adds Kirk's tests and ↵Antoine Pitrou2009-09-291-0/+15
| | | | | | | | | | | | | | | | | fixes another bug in the process] Merged revisions 75134 via svnmerge from 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. ........
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-2/+2
|
* Remove special logic that closes HTTPConnection socket on EPIPE.Jeremy Hylton2009-03-281-1/+31
| | | | | | | | | | http://bugs.python.org/issue5542 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. Also, various formatting changes.
* Replace references to httplib with http.client.Jeremy Hylton2009-03-271-27/+27
|
* Fix some string encoding issues with entity bodies in HTTP requests.Jeremy Hylton2009-03-271-1/+72
| | | | | | | | | | | | RFC 2616 says that iso-8859-1 is the default charset for HTTP entity bodies, but we encoded strings using ascii. See http://bugs.python.org/issue5314. Changed docs and code to use iso-8859-1. Also fix some brokenness with passing a file as the body instead of a string. Add tests to show that some of this behavior actually works.
* Merged revisions 70107 via svnmerge fromBenjamin Peterson2009-03-021-0/+19
| | | | | | | | | | 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 ........
* Issue #4631: Fix urlopen() result when an HTTP response uses chunked encoding.Antoine Pitrou2009-02-111-3/+1
|
* Reflow long line.Jeremy Hylton2008-12-151-1/+2
|
* Merged revisions ↵Georg Brandl2008-06-101-12/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 63562,63570,63728,63734,63784,63788,63802,63817,63827,63839,63887,63975,63998 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r63562 | martin.v.loewis | 2008-05-23 17:06:50 +0200 (Fri, 23 May 2008) | 2 lines Patch #1722225: Support QNX 6. ........ r63570 | trent.nelson | 2008-05-23 22:33:14 +0200 (Fri, 23 May 2008) | 1 line Introduce a user macro named $(externalsDir), which should point to the root directory of where all the external sources should live. Developers can change this value if their external sources live elsewhere. The default of '..\..' matches the current status quo. ........ r63728 | gregory.p.smith | 2008-05-26 23:16:34 +0200 (Mon, 26 May 2008) | 4 lines Fix issue2589: there was a potential integer overflow leading to memory corruption on esoteric platforms and incorrect behavior on normal platforms. ........ r63734 | gregory.p.smith | 2008-05-27 00:07:28 +0200 (Tue, 27 May 2008) | 3 lines Fix issue2588: Do not execute str[size-1] = '\0' when a 0 size is passed in. (The assert won't prevent this in non-debug builds). ........ r63784 | raymond.hettinger | 2008-05-29 10:38:23 +0200 (Thu, 29 May 2008) | 1 line Fix two typos. ........ r63788 | facundo.batista | 2008-05-29 18:39:26 +0200 (Thu, 29 May 2008) | 6 lines Fixed the semantic of timeout for socket.create_connection and 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, :) ........ r63802 | mark.dickinson | 2008-05-30 04:46:53 +0200 (Fri, 30 May 2008) | 2 lines Fix typo in testSum ........ r63817 | raymond.hettinger | 2008-05-30 20:20:50 +0200 (Fri, 30 May 2008) | 8 lines * Mark intermedidate computes values (hi, lo, yr) as volatile. * Expand comments. * Swap variable names in the sum_exact code so that x and y are consistently chosen as the larger and smaller magnitude values respectively. ........ r63827 | raymond.hettinger | 2008-05-31 05:24:31 +0200 (Sat, 31 May 2008) | 1 line Implement heapq in terms of less-than (to match list.sort()). ........ r63839 | gerhard.haering | 2008-05-31 23:33:27 +0200 (Sat, 31 May 2008) | 2 lines Fixed rowcount for SELECT statements. They're -1 now (again), for better DB-API 2.0 compliance. ........ r63887 | gregory.p.smith | 2008-06-02 06:05:52 +0200 (Mon, 02 Jun 2008) | 4 lines Fix issue 2782: be less strict about the format string type in strftime. Accept unicode and anything else ParseTuple "s#" can deal with. This matches the time.strftime behavior. ........ r63975 | neal.norwitz | 2008-06-06 06:47:01 +0200 (Fri, 06 Jun 2008) | 3 lines Aldo Cortesi confirmed this is still needed for OpenBSD 4.2 and 4.3. (I didn't regen configure, since I don't have a working autoconf.) ........ r63998 | raymond.hettinger | 2008-06-06 23:47:51 +0200 (Fri, 06 Jun 2008) | 1 line Issue 3501: Make heapq support both __le__ and __lt__. ........
* Create http package. #2883.Georg Brandl2008-05-261-3/+1
|
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-4/+4
|