summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.client.rst
Commit message (Collapse)AuthorAgeFilesLines
* merge 3.4 (#24118)Benjamin Peterson2015-05-031-6/+6
|\
| * update example, since python.org is HTTPS-only now (closes #24118)Benjamin Peterson2015-05-031-6/+6
| |
* | merge 3.4 (#23989)Benjamin Peterson2015-04-201-0/+5
|\ \ | |/
| * recommend requests library (closes #23989)Benjamin Peterson2015-04-201-0/+5
| | | | | | | | Patch from Van Lindberg
* | #3566: Clean up handling of remote server disconnects.R David Murray2015-04-051-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Murray2015-03-221-13/+23
|\ \ | |/
| * #23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None.R David Murray2015-03-221-13/+23
| | | | | | | | | | | | | | | | 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 #23439: Add missing entries to http.client.__all__.Berker Peksag2015-02-201-0/+6
|\ \ | |/ | | | | | | | | | | 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 Peksag2015-02-201-0/+6
| | | | | | | | | | | | | | 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 #20898: Add a "HTTP status codes" section to avoid duplication in HTTP ↵Berker Peksag2015-01-201-209/+3
|/ | | | | | | | | docs. This commit also removes a couple of non-standard status codes. They were added as part of edf669b13482, so there is no backwards compatibility issue. Patch by Demian Brecht.
* fix reference by adding module nameBenjamin Peterson2014-12-071-1/+1
|
* HTTPSConnection: prefer the context's check_hostname attribute over the ↵Benjamin Peterson2014-12-071-8/+3
| | | | constructor parameter (#22959)
* PEP 476: enable HTTPS certificate verification by default (#22417)Benjamin Peterson2014-11-031-6/+6
| | | | Patch by Alex Gaynor with some modifications by me.
* Correct the URL in the http.client example. Noted by Evens Fortuné. Closes ↵Senthil Kumaran2014-04-171-1/+1
| | | | #21229
* Issue #20913: improve the SSL security considerations to first advocate ↵Antoine Pitrou2014-03-221-17/+21
| | | | using create_default_context().
* merge 3.3 (#11448)Benjamin Peterson2014-03-161-4/+18
|\
| * improve set_tunnel docs (closes #11448)Benjamin Peterson2014-03-161-4/+18
| | | | | | | | Patch by Ryan Kelly, karl, and Nikolaus Rath.
* | whatsnew: deprecation of HTTPConnection's strict parameter.R David Murray2014-01-031-6/+6
| |
* | Issue #19795: Improved markup of True/False constants.Serhiy Storchaka2013-11-291-1/+1
|\ \ | |/
| * Issue #19795: Improved markup of True/False constants.Serhiy Storchaka2013-11-291-1/+1
| |
* | merge with 3.3Georg Brandl2013-10-271-1/+1
|\ \ | |/
| * Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more thanGeorg Brandl2013-10-271-1/+1
| | | | | | | | 100 headers are read. Adapted from patch by Jyrki Pulliainen.
* | merge with 3.3Georg Brandl2013-10-061-1/+1
|\ \ | |/
| * Fix minor bug in httplib example. Found by Alex MacAulay on docs@.Georg Brandl2013-10-061-1/+1
| |
* | #17460 - merge from 3.3Senthil Kumaran2013-03-191-0/+12
|\ \ | |/
| * #17460 - merge from 3.2Senthil Kumaran2013-03-191-3/+3
| |\
| | * #17460 - Adding relevant warning messages regarding strict removal in docsSenthil Kumaran2013-03-191-3/+3
| | |
* | | #17460: Remove the strict argument of HTTPConnection and removing theSenthil Kumaran2013-03-181-15/+3
|/ / | | | | | | DeprecationWarning being issued from 3.2 onwards.
* | #17307 - merge from 3.2Senthil Kumaran2013-03-131-0/+18
|\ \ | |/
| * #17307 - Example of HTTP PUT Request using http.clientSenthil Kumaran2013-03-131-0/+16
| |
* | #15831: merge with 3.2Ezio Melotti2012-09-141-2/+6
|\ \ | |/
| * #15831: document multiple signatures on different lines. Patch by Chris ↵Ezio Melotti2012-09-141-2/+6
| | | | | | | | Jerdonek.
* | Avoid useless indentation.Georg Brandl2012-05-211-2/+2
| |
* | #14809: Add HTTP status codes from RFC 6585 to http.server and http.clientHynek Schlawack2012-05-161-0/+15
| | | | | | | | Patch by EungJun Yi.
* | merge with 3.2Sandro Tosi2011-12-251-1/+1
|\ \ | |/
| * fix to sent/send typoSandro Tosi2011-12-251-1/+1
| |
* | Issue #13464: Add a readinto() method to http.client.HTTPResponse.Antoine Pitrou2011-12-061-0/+6
|/ | | | Patch by Jon Kuhn.
* Remove duplication.Ezio Melotti2011-10-191-1/+1
|
* Issue #13073 - Address the review comments made by Ezio.Senthil Kumaran2011-10-051-5/+4
|
* Document message_body arg in HTTPConnection.endheadersSenthil Kumaran2011-10-021-2/+6
|
* Fix closes issue12524 - update http.client POST example with a working example.Senthil Kumaran2011-07-201-4/+6
|
* Whitespace nit fixed using reident.Senthil Kumaran2011-06-191-1/+1
|
* Fix closes Issue12315 - Updates to http.client documentation.Senthil Kumaran2011-06-191-1/+12
|
* Typos.Raymond Hettinger2011-01-301-2/+2
|
* More source linksRaymond Hettinger2011-01-271-0/+4
|
* #3243 follow-up: remove debugging print and fix docs; data is a bytes object.v3.2b2Georg Brandl2010-12-191-1/+1
|
* Issue3243 - Support iterable bodies in httplib. Patch contributions by ↵Senthil Kumaran2010-12-191-4/+8
| | | | Xuanji Li and Chris AtLee.
* Issue #10711: Remove HTTP 0.9 support from http.client. The `strict`Antoine Pitrou2010-12-171-7/+16
| | | | parameter to HTTPConnection and friends is deprecated.
* #10705: document what the values of debuglevel are and mean.R. David Murray2010-12-151-2/+4
|
* Issue #5639: Add a *server_hostname* argument to `SSLContext.wrap_socket`Antoine Pitrou2010-10-221-0/+4
| | | | | | in order to support the TLS SNI extension. `HTTPSConnection` and `urlopen()` also use this argument, so that HTTPS virtual hosts are now supported.