summaryrefslogtreecommitdiffstats
path: root/Lib/urllib2.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed the semantic of timeout for socket.create_connection andFacundo Batista2008-05-291-2/+2
| | | | | | 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, :)
* #2695: Do case-insensitive check for algorithms.Georg Brandl2008-05-041-0/+2
|
* Issue #2670: urllib2.build_opener() failed when two handlersAmaury Forgeot d'Arc2008-04-221-3/+3
| | | | | | derive the same default base class. Will backport.
* #2585: initialize code attribute of HTTPError.Georg Brandl2008-04-091-1/+1
|
* #2136: allow single quotes in realm spec.Georg Brandl2008-03-211-2/+5
|
* Fixes Issue 1401. When redirected, a possible POST get convertedFacundo Batista2008-02-071-1/+4
| | | | | | to GET, so it loses its payload. So, it also must lose the headers related to the payload (if it has no content any more, it shouldn't indicate content length and type).
* Fix the test_urllib2net failures that were caused by r58067.Neal Norwitz2008-01-241-2/+2
| | | | | I'm not sure this is the correct fix, but at least the test passes now and should be closer to correct.
* Change socket.error to inherit from IOError rather than being a standGregory P. Smith2007-09-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | alone class. This addresses the primary concern in http://bugs.python.org/issue1706815 python-dev discussion here: http://mail.python.org/pipermail/python-dev/2007-July/073749.html I chose IOError rather than EnvironmentError as the base class since socket objects are often used as transparent duck typed file objects in code already prepared to deal with IOError exceptions. also a minor fix: urllib2 - fix a couple places where IOError was raised rather than URLError. for better or worse, URLError already inherits from IOError so this won't break any existing code. test_urllib2net - replace bad ftp urls.
* Patch #1752270, #1750931: complain if urllib2 add_handler calledGeorg Brandl2007-07-121-0/+4
| | | | without handler.
* Patch #1667860: Fix UnboundLocalError in urllib2.Georg Brandl2007-06-071-1/+1
|
* Added an optional timeout parameter to function urllib2.urlopen,Facundo Batista2007-06-061-10/+11
| | | | | | | with tests in test_urllib2net.py (must have network resource enabled to execute them). Also modified test_urllib2.py because testing mock classes must take it into acount. Docs are also updated.
* Remove the gopherlib module. It has been raising a DeprecationWarning sinceBrett Cannon2007-05-161-23/+1
| | | | | | | Python 2.5. Also remove gopher support from urllib/urllib2. As both imported gopherlib the usage of the support would have raised a DeprecationWarning.
* Whitespace normalization. Ugh, we really need to do this more often.Neal Norwitz2007-04-251-1/+1
| | | | You might want to review this change as it's my first time. Be gentle. :-)
* Fix SF #1703110, Incorrect example for add_password() (use uri, not host)Neal Norwitz2007-04-241-1/+4
|
* As specified in RFC 2616, 2xx code indicates that the client'sFacundo Batista2007-04-231-1/+3
| | | | | request was successfully received, understood, and accepted. Now in these cases no error is raised. Also fixed tests.
* Patch #1668100: urllib2 now correctly raises URLError instead ofGeorg Brandl2007-03-131-13/+17
| | | | OSError if accessing a local file via the file:// protocol fails.
* Whitespace normalization.Tim Peters2007-03-121-1/+1
|
* Patch #812285: allow multiple auth schemes in AbstractBasicAuthHandler.Georg Brandl2007-03-071-4/+3
|
* Minor corrections to docs, and an explanation comentaryFacundo Batista2007-03-051-13/+14
|
* Use new email module names (#1637162, #1637159, #1637157).Georg Brandl2007-01-221-2/+2
|
* Patch #1627441: close sockets properly in urllib2.Georg Brandl2007-01-211-1/+1
|
* [Patch #1574068 by Scott Dial] urllib and urllib2 were usingAndrew M. Kuchling2006-10-271-2/+2
| | | | | | base64.encodestring() for encoding authentication data. encodestring() can include newlines for very long input, which produced broken HTTP headers.
* Patch #1542948: fix urllib2 header casing issue. With new test.Georg Brandl2006-08-201-13/+15
|
* Bug #1459963: properly capitalize HTTP header names.Georg Brandl2006-07-261-13/+13
|
* 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
|