summaryrefslogtreecommitdiff
path: root/Lib/urllib2.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix Issue8797 - urllib2 basic authentication fix for wrong passwords. It ↵Senthil Kumaran2010-06-011-0/+9
| | | | fails after 5 retries.
* Fixing the errors trigerred in test_urllib2net. Related to issue8656.Senthil Kumaran2010-05-081-5/+8
|
* Fix Issue8656 - urllib2 mangles file://-scheme URLsSenthil Kumaran2010-05-081-1/+1
|
* Reverting the change made in r78431.Senthil Kumaran2010-03-071-3/+0
|
* Fix for Issue7540 ; urllib2 will raise a TypeError when you try to add_data toSenthil Kumaran2010-02-241-0/+3
| | | | a existing req object already having data.
* Fix for Issue3819 - urllib2 sends Basic auth across redirectsSenthil Kumaran2010-02-241-1/+1
|
* Fix for issue5625 - test_urllib2 fails - urlopen error file not on local host.Senthil Kumaran2009-12-271-2/+3
| | | | This is on hosts with multiple ip addresses.
* Fix for issue 7291 - urllib2 cannot handle https with proxy requiring authSenthil Kumaran2009-12-201-1/+8
| | | | Refactored HTTPHandler tests and added testcase for proxy authorization.
* Fix for Issue4683 - urllib2.HTTPDigestAuthHandler fails on third hostname?.Senthil Kumaran2009-11-151-1/+7
| | | | Resolution: Reset the nonce value for each unique nonce (as per RFC 2617)
* Addition of some details in the code comments.Senthil Kumaran2009-11-151-2/+4
|
* Fixed Issue6894, urllib2 doesn't respect "no_proxy" environmentSenthil Kumaran2009-10-111-1/+7
|
* Fix for issue5102, timeout value propages between redirects, proxy, digest andSenthil Kumaran2009-07-191-4/+4
| | | | auth handlers. Fixed tests to reflect the same.
* Fixed Issue1424152, urllib2 fails with HTTPS over Proxy.Senthil Kumaran2009-05-241-3/+13
|
* no need for this __bases__ trick anymoreBenjamin Peterson2009-02-121-1/+1
|
* Issue 4879: Allow buffering for HTTPResponseKristján Valur Jónsson2009-01-111-1/+4
|
* Update __all__ for cookielib, csv, os, and urllib2 for objects imported intoBrett Cannon2008-08-181-2/+2
| | | | the module but exposed as part of the API.
* Issue 2464. Supports a malformation in the URL receivedFacundo Batista2008-08-171-0/+8
| | | | in a redirect.
* Issue #2776: fixed small issue when handling an URL with double slashFacundo Batista2008-08-161-3/+9
| | | | after a 302 response in the case of not going through a proxy.
* 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
|