Senthil Kumaran
3075549d53
Minor code style improvements in http.server suggested in Issue13294.
2011-12-23 17:03:41 +08:00
Éric Araujo
23760e97ed
Don’t interpret backslashes in ASCII diagram in a docstring
2011-11-07 17:52:48 +01:00
Ezio Melotti
e130a52d8a
Remove duplication.
2011-10-19 10:58:56 +03:00
Łukasz Langa
a5a9a9c369
Fixes #10860 : Handle empty port after port delimiter in httplib
2011-10-18 21:17:39 +02:00
Senthil Kumaran
ad87fa6719
Issue #13073 - Address the review comments made by Ezio.
2011-10-05 23:26:49 +08:00
Georg Brandl
25e2cd1388
Fix spacing in string literal.
2011-08-03 08:27:00 +02:00
Senthil Kumaran
eb71ad4c71
Fix closes Issue12676 - Invalid identifier used in TypeError message in http.client.
...
Reported by Popa Claudiu and Patch by Santoso Wijaya.
2011-08-02 18:33:41 +08:00
Victor Stinner
56f9a0221b
merge 3.1
2011-03-21 02:51:38 +01:00
Victor Stinner
628225c0d1
Issue #5537 : Fix time2isoz() and time2netscape() functions of httplib.cookiejar
...
for expiration year greater than 2038 on 32-bit systems.
2011-03-21 02:38:51 +01:00
Senthil Kumaran
bec7886e3f
Merge from 3.1
2011-03-20 10:45:10 +08:00
Senthil Kumaran
1b407fe658
Issue #11567 - Let's have the DOCTYPE as HTML instead of XHTML.
2011-03-20 10:44:30 +08:00
Senthil Kumaran
9f9193ec37
Error message in http.server code. Missed to update in 3.1 branch initially.
2011-03-17 17:01:45 +08:00
Senthil Kumaran
b253c9f66d
Fix issue11567: http.server DEFAULT_ERROR_MESSAGE format. Patch by Gennadiy Zlobin.
2011-03-17 16:43:22 +08:00
Ezio Melotti
4969f709cc
#11515 : Merge with 3.1.
2011-03-15 05:59:46 +02:00
Ezio Melotti
42da663e6f
#11515 : fix several typos. Patch by Piotr Kasprzyk.
2011-03-15 05:18:48 +02:00
Georg Brandl
2774310c27
Merged revisions 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-02-25 10:18:11 +00:00
Georg Brandl
c7c199f907
#10983 : fix several bugs in the _tunnel implementation that seem to have missed while porting between branches. A unittest is needed!
2011-01-22 22:06:24 +00:00
Armin Ronacher
59531287fd
To match the behaviour of HTTP server, the HTTP client library now also encodes
...
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-22 13:44:22 +00:00
Armin Ronacher
8d96d77f9a
Issue #10980 : encode headers with latin1 instead of ASCII in the HTTP server.
...
This makes the implementation of PEP 3333 compliant servers on top of
BaseHTTPServer possible.
2011-01-22 13:13:05 +00:00
R. David Murray
daa7ba038b
Merged revisions 87550 via svnmerge from
...
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 18:56:33 +00:00
R. David Murray
e05ca2aff4
#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 18:54:13 +00:00
Senthil Kumaran
1e991f2de5
Fix some mistakes- Issue3243 (r87399) Correcting the operator precendence
...
problem with Content-Length header and uncommenting the test.
2010-12-24 04:03:59 +00:00
Senthil Kumaran
7bc0d872dd
Issue3243 - Support iterable bodies in httplib. Patch contributions by Xuanji Li and Chris AtLee.
2010-12-19 10:49:52 +00:00
Antoine Pitrou
ff1bbba92a
Merged revisions 87373,87381 via svnmerge from
...
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-18 18:04:38 +00:00
Senthil Kumaran
5466bf1c94
Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by Antoine Pitrou
2010-12-18 16:55:23 +00:00
Antoine Pitrou
988dbd7bc2
Issue #10711 : Remove HTTP 0.9 support from http.client. The `strict`
...
parameter to HTTPConnection and friends is deprecated.
2010-12-17 17:35:56 +00:00
Antoine Pitrou
3022ce1a14
Merged revisions 87317 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r87317 | antoine.pitrou | 2010-12-16 17:48:36 +0100 (jeu., 16 déc. 2010) | 4 lines
Issue #10714 : Limit length of incoming request in http.server to 65536 bytes
for security reasons. Initial patch by Ross Lagerwall.
........
(also backport some tests)
2010-12-16 17:03:16 +00:00
Antoine Pitrou
c492437922
Issue #10714 : Limit length of incoming request in http.server to 65536 bytes
...
for security reasons. Initial patch by Ross Lagerwall.
2010-12-16 16:48:36 +00:00
Georg Brandl
cbd2ab1311
#1513299 : cleanup some map() uses where a comprehension works better.
2010-12-04 10:39:14 +00:00
Senthil Kumaran
e4dad4f8e2
Fix issue3709 - BaseHTTPRequestHandler will buffer the headers and write only on end_headers call.
2010-11-21 14:36:14 +00:00
Senthil Kumaran
2e89cf3465
Merged revisions 86450 via svnmerge from
...
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
........
2010-11-14 03:14:52 +00:00
Senthil Kumaran
74ebd9e6a3
Fix Issue5111 - Wrap the Ipv6 host with [] in the Host header
2010-11-13 12:27:49 +00:00
Brian Curtin
938ece7152
Merged revisions 86195 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86195 | brian.curtin | 2010-11-05 10:04:48 -0500 (Fri, 05 Nov 2010) | 3 lines
Close subprocess pipes in the non-UNIX section of run_cgi.
Clears a number of ResourceWarnings in test_httpservers.
........
2010-11-05 15:08:19 +00:00
Brian Curtin
cbad4df179
Close subprocess pipes in the non-UNIX section of run_cgi.
...
Clears a number of ResourceWarnings in test_httpservers.
2010-11-05 15:04:48 +00:00
Antoine Pitrou
d532321f7b
Issue #5639 : Add a *server_hostname* argument to `SSLContext.wrap_socket`
...
in order to support the TLS SNI extension. `HTTPSConnection` and
`urlopen()` also use this argument, so that HTTPS virtual hosts are now
supported.
2010-10-22 18:19:07 +00:00
Georg Brandl
1f7fffb308
#2830 : add html.escape() helper and move cgi.escape() uses in the standard library to it. It defaults to quote=True and also escapes single quotes, which makes casual use safer. The cgi.escape() interface is not touched, but emits a (silent) PendingDeprecationWarning.
2010-10-15 15:57:45 +00:00
Antoine Pitrou
8060399654
Typo. It is rather obvious that this code isn't tested :/
2010-10-13 10:45:16 +00:00
Antoine Pitrou
803e6d670c
Issue #9003 : http.client.HTTPSConnection, urllib.request.HTTPSHandler and
...
urllib.request.urlopen now take optional arguments to allow for
server certificate checking, as recommended in public uses of HTTPS.
2010-10-13 10:36:15 +00:00
Antoine Pitrou
fa9c38d8e9
FakeSocket is (supposed to be) gone in 3.x
2010-10-06 18:38:22 +00:00
Senthil Kumaran
97304567a7
Merged revisions 85205 via svnmerge from
...
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).
........
2010-10-03 18:25:01 +00:00
Senthil Kumaran
58d5dbf80b
Fix Issue10012 - httplib headers, which are (sometimes mistakenly) int are explicitly cast to str (bytes - in py3k).
2010-10-03 18:22:42 +00:00
Senthil Kumaran
5e8826cd98
Merged revisions 85202 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85202 | senthil.kumaran | 2010-10-03 23:25:45 +0530 (Sun, 03 Oct 2010) | 4 lines
Fix Issue9272 - Change CGIHTTPServer to give the child program a copy of os.environ
........
2010-10-03 18:04:52 +00:00
Senthil Kumaran
4271372a71
Fix Issue9272 - Change CGIHTTPServer to give the child program a copy of os.environ
2010-10-03 17:55:45 +00:00
Senthil Kumaran
996e13c838
Merged revisions 85169 via svnmerge from
...
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.
........
2010-10-02 10:35:24 +00:00
Senthil Kumaran
5a2da3b3ad
Use proper variable name 'data' instead of 'str' in the send method.
2010-10-02 10:33:13 +00:00
Senthil Kumaran
0f476d49f8
Issue1491 - BaseHTTPServer incorrectly implements response code 100
2010-09-30 06:09:18 +00:00
Senthil Kumaran
3357840baf
Merged revisions 83521 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83521 | senthil.kumaran | 2010-08-02 16:34:58 +0530 (Mon, 02 Aug 2010) | 3 lines
Fix Issue8572 - httplib getheader() throws error instead of default
........
2010-08-02 12:01:21 +00:00
Senthil Kumaran
9f8dc4441f
Fix Issue8572 - httplib getheader() throws error instead of default
2010-08-02 11:04:58 +00:00
Georg Brandl
e5d518f252
Merged revisions 83370,83372-83374,83384 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r83370 | georg.brandl | 2010-07-31 23:51:48 +0200 (Sa, 31 Jul 2010) | 5 lines
#8198 : the Helper class should not save the stdin and stdout objects
at import time, rather by default use the current streams like the
other APIs that output help.
........
r83372 | georg.brandl | 2010-08-01 00:05:54 +0200 (So, 01 Aug 2010) | 1 line
#4007 : remove *.a and *.so.X.Y files in "make clean".
........
r83373 | georg.brandl | 2010-08-01 00:11:11 +0200 (So, 01 Aug 2010) | 1 line
#5147 : revert accidental indentation of header constant for MozillaCookieJar.
........
r83374 | georg.brandl | 2010-08-01 00:32:52 +0200 (So, 01 Aug 2010) | 1 line
#5146 : handle UID THREAD command correctly.
........
r83384 | georg.brandl | 2010-08-01 08:32:55 +0200 (So, 01 Aug 2010) | 1 line
Build properties using lambdas. This makes test_pyclbr pass again, because it does not think that input and output are methods anymore.
........
2010-08-01 19:09:07 +00:00
Georg Brandl
caa78fee03
Merged revisions 83371,83390 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r83371 | georg.brandl | 2010-07-31 23:54:24 +0200 (Sa, 31 Jul 2010) | 1 line
#8292 : Fix three instances of truth tests on return values of filter() (which is always true in Python 3).
........
r83390 | georg.brandl | 2010-08-01 10:07:49 +0200 (So, 01 Aug 2010) | 1 line
#8230 : make Lib/test/sortperf.py run on Python 3.
........
2010-08-01 19:07:28 +00:00