summaryrefslogtreecommitdiffstats
path: root/Lib/urllib2.py
Commit message (Collapse)AuthorAgeFilesLines
* Patches #1497027 and #972322: try HTTP digest auth first,Georg Brandl2006-05-291-0/+10
| | | | and watch out for handler name collisions.
* Patch #1496206: urllib2 PasswordMgr ./. default portsGeorg Brandl2006-05-281-15/+28
|
* Little cleanupNeal Norwitz2006-05-181-2/+2
|
* Delay-import some large modules to speed up urllib2 import.Georg Brandl2006-05-171-8/+28
| | | | (fixes #1484793).
* Patch #1479302: Make urllib2 digest auth and basic auth play together.Georg Brandl2006-05-081-3/+0
|
* Patch #1480067: don't redirect HTTP digest auth in urllib2Georg Brandl2006-05-031-1/+1
|
* In stdlib, use hashlib instead of deprecated md5 and sha modules.Georg Brandl2006-04-301-6/+5
|
* Patch #1470846: fix urllib2 ProxyBasicAuthHandler.Georg Brandl2006-04-301-10/+19
|
* Readd urllib.quote import as it doesn't cause any harm.Georg Brandl2006-04-021-1/+1
|
* Patch #1463012: remove not working undocumented classes from urllib2Georg Brandl2006-04-021-78/+10
|
* Patch #1462790: fix urllib2 ProxyHandler for host:port proxiesGeorg Brandl2006-04-021-19/+89
|
* bug #1462706: guard against host not having FQDN hostnameGeorg Brandl2006-04-021-2/+5
|
* Update version number to 2.5Georg Brandl2006-03-311-1/+1
|
* Revert r43399.Georg Brandl2006-03-281-13/+13
|
* Bug #1459963: urllib2 now normalizes HTTP header names correctlyGeorg Brandl2006-03-281-13/+13
| | | | with title().
* Bug #1353433: be conciliant with spaces in redirect URLsGeorg Brandl2006-03-181-1/+3
|
* Suppress new deprecation warnings when running theTim Peters2006-02-181-1/+1
| | | | | | | | | | | test suite. For urllib2, move the import of gopherlib into the only function that uses it: users (including the test suite) certainly shouldn't see a deprecation warning just because they import urllib2! If they actually use gopher_open(), fine, _then_ they should see a deprecation warning.
* Whitespace normalization.Tim Peters2006-02-181-2/+0
|
* Move "httpresponses" dict from urllib2 to httplib where it belongs.Georg Brandl2006-02-171-48/+1
|
* Bug #902075: urllib2 now handles "host:port" proxy specificationsGeorg Brandl2006-01-211-8/+13
| | | | Can/should this be backported?
* Whitespace normalization (via reindent.py).Tim Peters2005-08-261-2/+2
|
* Bug #735248: Fix urllib2.parse_http_list.Georg Brandl2005-08-241-39/+36
|
* Bug 1016563: Bug in urllib2 proxy authGeorg Brandl2005-08-241-1/+1
|
* Whitespace normalization.Tim Peters2005-07-171-4/+4
|
* RFE [ 1216944 ] Add Error Code Dictionary to urllib2Georg Brandl2005-07-141-0/+49
|
* bug [ 1175848 ] poorly named variable in urllib2.pyGeorg Brandl2005-06-261-2/+2
|
* Replace list of constants with tuples of constants.Raymond Hettinger2005-02-061-1/+1
|
* SF patch #1028908Raymond Hettinger2005-02-051-3/+6
| | | | | | (John J Lee) Minor code clarification and simplification.
* Patch #1095362: replace hardcoded test for POST/GET with call to get_method,Johannes Gijsbers2005-01-091-1/+1
| | | | removing some duplication and gaining some flexibility in the process.
* Two small changes, SF bug #974757 and SF patch #1037974.Jeremy Hylton2004-12-221-6/+8
| | | | | | | | Pass the full URL to find_user_password(), in particular so that hosts with port numbers can be looked up. Also specify the digest algorithm, even if it's MD5. Titus Brown verified that this fixes a problem with LiveJournal.
* Added a usegmt flag to email.Utils.formatdate - this allows it to beAnthony Baxter2004-10-111-2/+2
| | | | | used to replace rfc822.formatdate for protocols like HTTP (where 'GMT' must be the timezone string).
* Use multi-line importAndrew M. Kuchling2004-08-311-3/+3
|
* Whitespace normalization.Tim Peters2004-08-081-3/+3
|
* Fix urllib2.urlopen() handling of chunked content encoding.Jeremy Hylton2004-08-071-2/+14
| | | | | | | | | | | | | | | | | The change to use the newer httplib interface admitted the possibility that we'd get an HTTP/1.1 chunked response, but the code didn't handle it correctly. The raw socket object can't be pass to addinfourl(), because it would read the undecoded response. Instead, addinfourl() must call HTTPResponse.read(), which will handle the decoding. One extra wrinkle is that the HTTPReponse object can't be passed to addinfourl() either, because it doesn't implement readline() or readlines(). As a quick hack, use socket._fileobject(), which implements those methods on top of a read buffer. (suggested by mwh) Finally, add some tests based on test_urllibnet. Thanks to Andrew Sawyers for originally reporting the chunked problem.
* Patch #994595: Recognize Basic auth even if other schemes are offered.Martin v. Löwis2004-08-031-1/+1
| | | | Will backport to 2.3.
* Patch [ 972332 ] urllib2 FTPHandler bugs / John J. LeeKurt B. Kaiser2004-07-111-2/+4
| | | | | Modified Files: urllib2.py test/test_urllib2.py
* [Patch #988602] Move the urllib2 tests into the test frameworkAndrew M. Kuchling2004-07-101-77/+0
|
* [Patch #988504] Fix HTTP error handling via a patch from John J. LeeAndrew M. Kuchling2004-07-101-10/+6
|
* [Bug #912845] urllib2 only checks for a 200 return code, but 206 is also ↵Andrew M. Kuchling2004-06-291-2/+2
| | | | | | legal if a Range: header was supplied. (Actually, should the first 'if' statement be modified to allow any 2xx status code?)
* Cleanup: the in operator already returns a bool, no need to bool() it againNeal Norwitz2004-06-071-4/+4
| | | | | Cleanup: use condition to be consistent with code above CookieJar is in cookielib
* Patch #963318: Add support for client-side cookie management.Martin v. Löwis2004-05-311-16/+59
|
* Fix [ 738973 ] urllib2 CacheFTPHandler doesn't work on multiple dirs, asMark Hammond2004-05-101-1/+1
| | | | implemented in patch [ 851736 ].
* Patch #944110: Properly process empty passwords. Fixes #944082.Martin v. Löwis2004-05-061-1/+1
| | | | Backported to 2.3.
* Fix comment typoAndrew M. Kuchling2004-04-061-1/+1
|
* Fix two bugs in the new do_open() implementation for HTTPHandler.Jeremy Hylton2004-02-241-6/+17
| | | | | | | | | Invoke the standard error handlers for non-200 responses. Always supply a "Connection: close" header to prevent the server from leaving the connection open. Downstream users of the socket may attempt recv()/read() with no arguments, which would block if the connection were kept open.
* Patch #711838: Allow non-anonymous ftp urls in urllib2.Martin v. Löwis2004-02-151-6/+15
| | | | Backported to 2.3.
* Patch #817379: Allow for absolute ftp paths.Martin v. Löwis2004-02-151-1/+1
| | | | Backported to 2.3.
* Whitespace normalization.Tim Peters2004-01-181-7/+7
|
* Rewrite AbstractHTTPHandler to use modern httplib interface.Jeremy Hylton2003-12-171-25/+26
| | | | | | | | | | | | The chief benefit of this change is that requests will now use HTTP/1.1 instead of HTTP/1.0. Bump the module version number as part of the change. There are two possible incompatibilities that we'll need to watch out for when we get to an alpha release. We may get a different class of exceptions out of httplib, and the do_open() method changed its signature. The latter is only important if anyone actually subclasses AbstractHTTPHandler.
* Remove __del__ methods to avoid creating uncollectable cyclic trash.Jeremy Hylton2003-12-151-13/+4
| | | | | | Keep close() methods for backwards compatibility. Does any call close() explicitly?