diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2007-08-04 19:22:00 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2007-08-04 19:22:00 (GMT) |
commit | 39b198d8354b2b1b059488acbd3804b6a01641a8 (patch) | |
tree | 7faabcdfc18fc922e961d16e6e5a10c6420ffaf8 /Lib/test/test_urllib.py | |
parent | f066c1ba3755e844be42ce9bc2344d34a14c5701 (diff) | |
download | cpython-39b198d8354b2b1b059488acbd3804b6a01641a8.zip cpython-39b198d8354b2b1b059488acbd3804b6a01641a8.tar.gz cpython-39b198d8354b2b1b059488acbd3804b6a01641a8.tar.bz2 |
Change urllib to use HTTPConnection rather than old HTTP class.
The HTTP class is a backwards compatibility layer for the Python 1.5
API. (The only remaining use in the std library is xmlrpclib.)
The current change makes urllib issue HTTP/1.0 requests with
HTTPConnection, because is accesses HTTPResponse.fp directly instead
of using the read() method. Using fp directly interacts poorly with
persistent connections. There are probably better solutions than the
current one, but this is a start.
Diffstat (limited to 'Lib/test/test_urllib.py')
0 files changed, 0 insertions, 0 deletions