- 28 Haz, 2002 2 kayıt (commit)
-
-
Jeremy Hylton yazdı
See discussion in SF bug 458463.
-
Jeremy Hylton yazdı
The HTTPResponse class now handles 100 continue responses, instead of choking on them. It detects them internally in the _begin() method and ignores them. Based on a patch by Bob Kline. This closes SF bugs 498149 and 551273. The FakeSocket class (for SSL) is now usable with HTTP/1.1 connections. The old version of the code could not work with persistent connections, because the makefile() implementation read until EOF before returning. If the connection is persistent, the server sends a response and leaves the connection open. A client that reads until EOF will block until the server gives up on the connection -- more than a minute in my test case. The problem was fixed by implementing a reasonable makefile(). It reads data only when it is needed by the layers above it. It's implementation uses an internal buffer with a default size of 8192. Also, rename begin() method of HTTPResponse to _begin() because it should only be called by the HTTPConnection.
-
- 01 Haz, 2002 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 20 Nis, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
Fixes #494762.
-
- 24 Mar, 2002 2 kayıt (commit)
-
-
Skip Montanaro yazdı
-
Skip Montanaro yazdı
-
- 18 Mar, 2002 1 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
FakeSocket class. Without it, the sendall() call got the method on the underlying socket object, and that messed up SSL. Does httplib use other methods of sockets that FakeSocket doesn't support? Someone should take a look... (I'll try to give it a once-over.) 2.2.1 bugfix candidate.
-
- 09 Mar, 2002 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
Don't automatically add a Host: header if the headers passed to request() already has a Host key.
-
- 08 Mar, 2002 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
In August, Greg said this looked good, so I'm going ahead with it. The fix is different from the one in the bug report. Instead of using a regular expression to extract the host from the url, I use urlparse.urlsplit. Martin commented that the patch doesn't address URLs that have basic authentication username and password in the header. I don't see any code anywhere in httplib that supports this feature, so I'm not going to address it for this fix. Bug fix candidate.
-
- 16 Şub, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
Replaces calls to socket.send() (which isn't guaranteed to send all data) with the new socket.sendall() method.
-
- 11 Şub, 2002 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 11 Eki, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
SyntaxError. Fix it.
-
Jeremy Hylton yazdı
Try to be systematic about dealing with socket and ssl exceptions in FakeSocket.makefile(). The previous version of the code caught all ssl errors and treated them as EOF, even though most of the errors don't mean EOF. An SSL error can mean on of three things: 1. The SSL/TLS connection was closed. 2. The operation should be retried. 3. An error occurred. Also, if a socket error occurred and the error was EINTR, retry the call. Otherwise, it was a legitimate error and the caller should receive the exception.
-
- 07 Eki, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 18 Agu, 2001 1 kayıt (commit)
-
-
Greg Stein yazdı
For the HTTPS class (when available), ensure that the x509 certificate data gets passed through to the HTTPSConnection class. Create a new HTTPS.__init__ to do this, and refactor the HTTP.__init__ into a new _setup method for both init's to call. Note: this is solved differently from the patch, which advocated a new **x509 parameter on the base HTTPConnection class. But that would open HTTPConnection to arbitrary (ignored) parameters, so was not as desirable.
-
- 31 Tem, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 26 Tem, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 24 Tem, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 01 Haz, 2001 1 kayıt (commit)
-
-
Skip Montanaro yazdı
-
- 13 Nis, 2001 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
Fixes SF bug #405427. If an http response has a bogus return code, e.g. 400.100, raise BadStatusLine.
-
- 01 Şub, 2001 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
socket -- as suggested by Clarence Gardner. Fix httplib to comply with the new ssl-socket interface.
-
- 23 Ock, 2001 1 kayıt (commit)
-
-
Skip Montanaro yazdı
fixed typo in ihooks docstring
-
- 15 Ock, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
"smallest patch ever".
-
- 14 Ock, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
-
Guido van Rossum yazdı
Header Dougfort's comments: httplib does not include ':port ' in the HTTP 1.1 'Host:' header. This causes problems if the server is not listening on Port 80. The test case I use is the login to /manage under Zope, with Zope listening on port 8080. Zope returns a <frameset> with the <frame> source URLs lacking the :8080.
-
- 13 Ock, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
modification. Removed the need for that.
-
Guido van Rossum yazdı
The ASCII-art diagram at the top of httplib contains a backslash at the end of a line, which causes Python to remove the newline. This one-character patch adds a space after the backslash so it will appear at the end of the line in the docstring as intended.
-
- 15 Ara, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
There should really be a little tool to help with this -- it's rather tedious and there are lots of special cases!
-
- 11 Ara, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
socket in httplib.py. The bug reports that on Windows, you must pass sock._sock to the socket.ssl() call. But on Unix, you must pass sock itself. (sock is a wrapper on Windows but not on Unix; the ssl() call wants the real socket object, not the wrapper.) So we see if sock has an _sock attribute and if so, extract it. Unfortunately, the submitter of the bug didn't confirm that this patch works, so I'll just have to believe it (can't test it myself since I don't have OpenSSL on Windows set up, and that's a nontrivial thing I believe).
-
- 12 Eki, 2000 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
msg/headers are empty and the entire response is treated as the body.
-
- 21 Eyl, 2000 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 18 Eyl, 2000 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
interface consistent: The client is responsible for closing the socket, regardless of the amount of data received. Restore suport for set_debuglevel call.
-
- 14 Eyl, 2000 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
ignoring them; e.g. Zope sometimes returns 13497L
-
- 23 Agu, 2000 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
fix support for passing http version to connect in HTTP
-
- 01 Agu, 2000 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
Modify HTTP to use delegation instead of inheritance. The _connection_class attribute of the class defines what class to delegate to. The HTTPS class is a subclass of HTTP that redefines _connection_class.
-
- 18 Tem, 2000 1 kayıt (commit)
-
-
Greg Stein yazdı
use "cvs diff -b" to verify.
-
- 26 Haz, 2000 1 kayıt (commit)
-
-
Greg Stein yazdı
connections.
-
- 19 May, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 28 Mar, 2000 1 kayıt (commit)
-
-
Guido van Rossum yazdı
This fixes a bunch of socket.connect(host, post) calls. Note that I haven't tested all modules -- I don't have enough servers here...
-
- 10 Şub, 2000 1 kayıt (commit)
-
-
Fred Drake yazdı
-