summaryrefslogtreecommitdiff
path: root/Lib/http
AgeCommit message (Collapse)AuthorLines
2016-07-10#22758: fix regression in handling of secure cookies.R David Murray-10/+19
This backports the fix from #16611, per discussion with the release manager.
2015-05-23allow square brackets in cookie values (closes #22931)Benjamin Peterson-3/+4
2014-09-17Lax cookie parsing in http.cookies could be a security issue when combinedAntoine Pitrou-1/+2
with non-standard cookie handling in some Web browsers. Reported by Sergey Bobrov.
2014-09-30Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more thanGeorg Brandl-0/+4
100 headers are read. Adapted from patch by Jyrki Pulliainen.
2014-07-12Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily-5/+5
broken by the fix for security issue #19435. Patch by Zach Byrne.
2014-06-14url unquote the path before checking if it refers to a CGI script (closes ↵Benjamin Peterson-1/+1
#21766)
2013-10-30merge 3.1 (#19435)Benjamin Peterson-5/+4
2013-10-30use the collapsed path in the run_cgi method (closes #19435)Benjamin Peterson-5/+4
2013-03-05Reverting the changeset 5126e62c60af made for Issue #12921Senthil Kumaran-1/+1
2013-03-05Fix Issue #12921: BaseHTTPServer's send_error should send the correct errorSenthil Kumaran-1/+1
response message when send_error includes a message in addition to error status. Patch contributed by Karl.
2013-02-06Issue #16723: httplib.HTTPResponse no longer marked closed when the connectionSerhiy Storchaka-15/+19
is automatically closed.
2013-02-02Simplify code in HTTPResponse.read()Antoine Pitrou-4/+1
2013-02-02Issue #15633: httplib.HTTPResponse is now mark closed when the server sends ↵Antoine Pitrou-1/+9
less than the advertised Content-Length.
2012-12-15Issue #16298: In HTTPResponse.read(), close the socket when there is no ↵Antoine Pitrou-0/+4
Content-Length and the incoming stream is finished. Patch by Eran Rundstein.
2012-09-21#15980: properly escape newlines in docstrings. Patch by Serhiy Storchaka.Ezio Melotti-2/+2
2012-05-20Fix for issue14426 - buildbots here I comeSenthil Kumaran-1/+1
2012-05-20 Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. ↵Senthil Kumaran-1/+1
Patch by Federico Reghenzani and Müte Invert
2012-05-19Fix Issue14721: Send Content-length: 0 for empty body () in the http.client ↵Senthil Kumaran-1/+1
requests
2012-04-29Fix issue6085 - Remove the delay caused by fqdn lookup while logging in ↵Senthil Kumaran-2/+2
BaseHTTPRequestHandler
2012-04-29httplib - minor update to check empty responseSenthil Kumaran-2/+2
2012-04-23 3.2 - Fix for Issue13684 - httplib tunnel infinite loopSenthil Kumaran-0/+3
2012-04-123.2 - Issue 10484 - Incorporate improvements to CGI module - Suggested by ↵Senthil Kumaran-26/+28
Glenn Linderman. Refactor code and tests
2012-04-113.2- fix the incorrect changes made for PATH_INFO value - Issue10484Senthil Kumaran-10/+6
2012-03-16closes issue10484 - Fix the http.server's cgi PATH_INFO handling problemSenthil Kumaran-1/+8
2011-12-23Minor code style improvements in http.server suggested in Issue13294.Senthil Kumaran-6/+3
2011-11-07Don’t interpret backslashes in ASCII diagram in a docstringÉric Araujo-1/+1
2011-10-19Remove duplication.Ezio Melotti-1/+1
2011-10-18Fixes #10860: Handle empty port after port delimiter in httplibŁukasz Langa-1/+4
2011-10-05Issue #13073 - Address the review comments made by Ezio.Senthil Kumaran-5/+5
2011-08-03Fix spacing in string literal.Georg Brandl-2/+2
2011-08-02Fix closes Issue12676 - Invalid identifier used in TypeError message in ↵Senthil Kumaran-1/+1
http.client. Reported by Popa Claudiu and Patch by Santoso Wijaya.
2011-03-21merge 3.1Victor Stinner-6/+12
2011-03-21Issue #5537: Fix time2isoz() and time2netscape() functions of httplib.cookiejarVictor Stinner-6/+12
for expiration year greater than 2038 on 32-bit systems.
2011-03-20Merge from 3.1Senthil Kumaran-4/+3
2011-03-20Issue #11567 - Let's have the DOCTYPE as HTML instead of XHTML.Senthil Kumaran-4/+3
2011-03-17Error message in http.server code. Missed to update in 3.1 branch initially.Senthil Kumaran-9/+14
2011-03-17Fix issue11567: http.server DEFAULT_ERROR_MESSAGE format. Patch by Gennadiy ↵Senthil Kumaran-9/+14
Zlobin.
2011-03-15#11515: Merge with 3.1.Ezio Melotti-1/+1
2011-03-15#11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti-1/+1
2011-02-25Merged revisions ↵Georg Brandl-2/+4
87627,87638,87739,87760,87771,87787,87984,87986,88108,88115,88144,88165,88329,88364-88365,88369-88370,88423-88424 via svnmerge from svn+ssh://svn.python.org/python/branches/py3k ........ r87627 | georg.brandl | 2011-01-02 15:23:43 +0100 (So, 02 Jan 2011) | 1 line #1665333: add more docs for optparse.OptionGroup. ........ r87638 | georg.brandl | 2011-01-02 20:07:51 +0100 (So, 02 Jan 2011) | 1 line Fix code indentation. ........ r87739 | georg.brandl | 2011-01-04 18:27:13 +0100 (Di, 04 Jan 2011) | 1 line Fix exception catching. ........ r87760 | georg.brandl | 2011-01-05 11:59:48 +0100 (Mi, 05 Jan 2011) | 1 line Fix duplicate end tag. ........ r87771 | georg.brandl | 2011-01-05 22:47:47 +0100 (Mi, 05 Jan 2011) | 1 line On Py3k, -tt and -3 are no-op and unsupported respectively. ........ r87787 | georg.brandl | 2011-01-06 10:15:45 +0100 (Do, 06 Jan 2011) | 1 line Remove doc for nonexisting parameter. ........ r87984 | georg.brandl | 2011-01-13 08:24:40 +0100 (Do, 13 Jan 2011) | 1 line Add semicolon for consistency. ........ r87986 | georg.brandl | 2011-01-13 08:31:18 +0100 (Do, 13 Jan 2011) | 1 line Fix the example output of count(). ........ r88108 | georg.brandl | 2011-01-19 09:42:03 +0100 (Mi, 19 Jan 2011) | 1 line Suppress trailing spaces in table paragraphs. ........ r88115 | georg.brandl | 2011-01-19 21:05:49 +0100 (Mi, 19 Jan 2011) | 1 line #10944: add c_bool to types table. ........ r88144 | georg.brandl | 2011-01-22 23:06:24 +0100 (Sa, 22 Jan 2011) | 1 line #10983: fix several bugs in the _tunnel implementation that seem to have missed while porting between branches. A unittest is needed! ........ r88165 | georg.brandl | 2011-01-24 20:53:18 +0100 (Mo, 24 Jan 2011) | 1 line Typo fix. ........ r88329 | georg.brandl | 2011-02-03 08:08:25 +0100 (Do, 03 Feb 2011) | 1 line Punctuation typos. ........ r88364 | georg.brandl | 2011-02-07 13:10:46 +0100 (Mo, 07 Feb 2011) | 1 line #11138: fix order of fill and align specifiers. ........ r88365 | georg.brandl | 2011-02-07 13:13:58 +0100 (Mo, 07 Feb 2011) | 1 line #8691: document that right alignment is default for numbers. ........ r88369 | georg.brandl | 2011-02-07 16:30:45 +0100 (Mo, 07 Feb 2011) | 1 line Consistent heading spacing, and fix two typos. ........ r88370 | georg.brandl | 2011-02-07 16:44:27 +0100 (Mo, 07 Feb 2011) | 1 line Spelling fixes. ........ r88423 | georg.brandl | 2011-02-15 13:41:17 +0100 (Di, 15 Feb 2011) | 1 line Apply logging SocketHandler doc update by Vinay. ........ r88424 | georg.brandl | 2011-02-15 13:44:43 +0100 (Di, 15 Feb 2011) | 1 line Remove editing slip. ........
2011-01-22#10983: fix several bugs in the _tunnel implementation that seem to have ↵Georg Brandl-3/+5
missed while porting between branches. A unittest is needed!
2011-01-22To match the behaviour of HTTP server, the HTTP client library now also encodesArmin Ronacher-2/+2
headers with iso-8859-1 (latin1) encoding. It was already doing that for incoming headers which makes this behaviour now consistent in both incoming and outgoing direction.
2011-01-22Issue #10980: encode headers with latin1 instead of ASCII in the HTTP server.Armin Ronacher-2/+2
This makes the implementation of PEP 3333 compliant servers on top of BaseHTTPServer possible.
2010-12-28Merged revisions 87550 via svnmerge fromR. David Murray-0/+5
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87550 | r.david.murray | 2010-12-28 13:54:13 -0500 (Tue, 28 Dec 2010) | 8 lines #9824: encode , and ; in cookie values so that browsers don't split on them There is a small chance of backward incompatibility here, but only for non-SimpleCookie applications reading SimpleCookie generated cookies. Even then, any such ap is likely to be handling escaped values already, and it would take a fairly perverse implementation of unescaping to fail to unescape these newly escaped chars, so the risk seems minimal. ........
2010-12-28#9824: encode , and ; in cookie values so that browsers don't split on themR. David Murray-0/+5
There is a small chance of backward incompatibility here, but only for non-SimpleCookie applications reading SimpleCookie generated cookies. Even then, any such ap is likely to be handling escaped values already, and it would take a fairly perverse implementation of unescaping to fail to unescape these newly escaped chars, so the risk seems minimal.
2010-12-24Fix some mistakes- Issue3243 (r87399) Correcting the operator precendenceSenthil Kumaran-1/+1
problem with Content-Length header and uncommenting the test.
2010-12-19Issue3243 - Support iterable bodies in httplib. Patch contributions by ↵Senthil Kumaran-2/+15
Xuanji Li and Chris AtLee.
2010-12-18Merged revisions 87373,87381 via svnmerge fromAntoine Pitrou-7/+30
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ 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 ........
2010-12-18Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by ↵Senthil Kumaran-8/+33
Antoine Pitrou
2010-12-17Issue #10711: Remove HTTP 0.9 support from http.client. The `strict`Antoine Pitrou-110/+23
parameter to HTTPConnection and friends is deprecated.