| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Includes patch by Ville Skyttä.
|
| |
|
| |
|
|
|
|
| |
Initial patch from Cory Benfield.
|
|
|
|
| |
value in the host header was set to "None". Patch by Demian Brecht.
|
|
|
|
| |
classes (such as TemporaryFile). Original patch by Atsuo Ishimoto.
|
|
|
|
|
|
|
| |
Some http servers will reject PUT, POST, and PATCH requests if they
do not have a Content-Length header.
Patch by James Rutherford.
|
|
|
|
| |
Original patch by Demian Brecht.
|
|
|
|
| |
Patch by Cory Benfield.
|
|
|
|
|
| |
instead of (non-existing) _set_hostport. (Fix the regression introduced in
568041fd8090 )
|
|\ |
|
| | |
|
|/
|
|
| |
Original patch by Martin Panter.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
httplib.HTTPSConnection
This is basically a backport of issues #9003 and #22366.
|
|
|
|
|
|
| |
than 100 headers are read.
Patch by Jyrki Pulliainen and Daniel Eriksson.
|
|
|
|
|
|
| |
using http.client.HTTPConnection.set_tunnel().
Patch by Nikolaus Rath.
|
|
|
|
| |
tests.
|
|
|
|
| |
Original patch by Simon Sapin.
|
|
|
|
| |
less than the advertised Content-Length.
|
|
|
|
|
|
| |
Content-Length and the incoming stream is finished.
Patch by Eran Rundstein.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Thanks, Shawn Ligocki!
3.x version will come as a separate patch.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/branches/py3k
BaseHTTPServer isn't fixed, this would require too much refactoring.
........
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
........
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line
#9424: Replace deprecated assert* methods in the Python test suite.
........
|
|
|
|
|
|
|
|
|
|
| |
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
........
|
|
|
|
|
|
|
|
|
|
| |
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).
........
|
| |
|
|
|
|
|
|
|
|
| |
Remove special logic that closes HTTPConnection socket on EPIPE.
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.
|
| |
|
|
|
|
| |
"transfer-encoding: chunked"
|
| |
|
|
|
|
|
|
| |
source_address parameter.
Also cleans up an annotation in the socket documentation.
|
|
|
|
| |
`httplib.HTTPConnection.send`. Patch by Kirk McDonald.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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, :)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to listen on in network-oriented tests has been refined in an effort to
facilitate running multiple instances of the entire regression test suite
in parallel without issue. test_support.bind_port() has been fixed such
that it will always return a unique port -- which wasn't always the case
with the previous implementation, especially if socket options had been
set that affected address reuse (i.e. SO_REUSEADDR, SO_REUSEPORT). The
new implementation of bind_port() will actually raise an exception if it
is passed an AF_INET/SOCK_STREAM socket with either the SO_REUSEADDR or
SO_REUSEPORT socket option set. Furthermore, if available, bind_port()
will set the SO_EXCLUSIVEADDRUSE option on the socket it's been passed.
This currently only applies to Windows. This option prevents any other
sockets from binding to the host/port we've bound to, thus removing the
possibility of the 'non-deterministic' behaviour, as Microsoft puts it,
that occurs when a second SOCK_STREAM socket binds and accepts to a
host/port that's already been bound by another socket. The optional
preferred port parameter to bind_port() has been removed. Under no
circumstances should tests be hard coding ports!
test_support.find_unused_port() has also been introduced, which will pass
a temporary socket object to bind_port() in order to obtain an unused port.
The temporary socket object is then closed and deleted, and the port is
returned. This method should only be used for obtaining an unused port
in order to pass to an external program (i.e. the -accept [port] argument
to openssl's s_server mode) or as a parameter to a server-oriented class
that doesn't give you direct access to the underlying socket used.
Finally, test_support.HOST has been introduced, which should be used for
the host argument of any relevant socket calls (i.e. bind and connect).
The following tests were updated to following the new conventions:
test_socket, test_smtplib, test_asyncore, test_ssl, test_httplib,
test_poplib, test_ftplib, test_telnetlib, test_socketserver,
test_asynchat and test_socket_ssl.
It is now possible for multiple instances of the regression test suite to
run in parallel without issue.
|
| |
|
|
|
|
|
| |
httplib will now raise IncompleteRead and close the connection instead
of raising ValueError.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
socket.create_connection function. Also added a small
test for this, and updated NEWS file.
|