summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #14132: Fix redirect handling when target is just a query stringMartin Panter2016-05-161-1/+18
|
* Issue #19524: Port fakehttp() from Py3 c1fb19907cc4 for use in test_urllib2Serhiy Storchaka2014-09-061-0/+1
|
* Issue #2202: Fix UnboundLocalError in ↵Berker Peksag2016-03-061-1/+11
| | | | | | | | AbstractDigestAuthHandler.get_algorithm_impls Raise ValueError if algorithm is not MD5 or SHA. Initial patch by Mathieu Dupuy.
* Issue #6500: Fixed infinite recursion in urllib2.Request.__getattr__().Serhiy Storchaka2016-01-181-0/+5
|
* Issue #6500: Reverting fbea8ff8db5e since it broke testsBerker Peksag2016-01-061-7/+0
|
* Issue #6500: Fix "maximum recursion depth exceeded" error caused by ↵Berker Peksag2016-01-061-0/+7
| | | | Request.__getattr__()
* Issue #7665: Fixed tests test_ntpath and test_urllib2 when ran in theSerhiy Storchaka2015-01-261-1/+1
| | | | directory containing a backslash.
* allow passing cert/ssl information to urllib2.urlopen and ↵Benjamin Peterson2014-11-231-0/+13
| | | | | | httplib.HTTPSConnection This is basically a backport of issues #9003 and #22366.
* Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref ↵Serhiy Storchaka2014-02-081-3/+4
| | | | tests.
* Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that ↵Senthil Kumaran2012-12-231-10/+26
| | | | to return headers correctly
* replace threw with raised (#16714)Andrew Svetlov2012-12-191-1/+1
|
* revert the changes done in d931a3b64fd6 - buildbot failure.Senthil Kumaran2012-07-081-6/+0
| | | | | The fix for issue14826 might need to address toBytes and test_url_encoding in test_cookielib.py before it is brought back in.
* Fix issue14826 - make urllib.request.Request quoted url consistent with ↵Senthil Kumaran2012-07-081-0/+6
| | | | | | URLOpener open method. Patch contributed by Stephen Thorne.
* Issue12541 - Add UserWarning for unquoted realmsSenthil Kumaran2012-05-151-7/+9
|
* Issue #12541: Be lenient with quotes around Realm field with HTTP Basic ↵Senthil Kumaran2012-05-151-0/+16
| | | | Authentation in urllib2.
* Issue #13211: Add .reason attribute to HTTPError to implement parent class ↵Jason R. Coombs2011-11-071-0/+11
| | | | (URLError) interface.
* Issue #10883: Fix socket leaks in urllib.request.Nadeem Vawda2011-07-231-0/+1
| | | | | | | | * ftpwrapper now uses reference counting to ensure that the underlying socket is closed when the ftpwrapper object is no longer in use * ftplib.FTP.ntransfercmd() now closes the socket if an error occurs Initial patch by Victor Stinner.
* Issue #12133: AbstractHTTPHandler.do_open() of urllib.request closes the HTTPVictor Stinner2011-06-171-0/+5
| | | | | connection if its getresponse() method fails with a socket error. Patch written by Ezio Melotti.
* Fix Issue11703 - urllib2.get_url does not handle fragment in url properly.Senthil Kumaran2011-04-121-1/+14
|
* Merge urllib/urllib2 security fix from 2.6 branch.guido@google.com2011-03-291-0/+22
|\
| * Merge urllib/urllib2 security fix from 2.5 branch.guido@google.com2011-03-291-0/+22
| |\
| | * Add tests for the urllib[2] vulnerability. Change to raise exceptions.guido@google.com2011-03-281-0/+21
| | |
| | * Issue #2670: urllib2.build_opener() failed when two handlersAmaury Forgeot d'Arc2008-04-221-0/+6
| | | | | | | | | | | | | | | | | | derive the same default base class. Backport of r62463.
| | * Patch #1752270, #1750931: complain if urllib2 add_handler calledGeorg Brandl2007-07-121-0/+6
| | | | | | | | | | | | | | | without handler. (backport from rev. 56293)
| | * Patch #1542948: fix urllib2 header casing issue. With new test.Georg Brandl2006-08-201-7/+70
| | | | | | | | | | | | (backport from rev. 51416)
| * | Merged revisions 82782 via svnmerge fromSenthil Kumaran2010-07-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/release27-maint ................ r82782 | senthil.kumaran | 2010-07-11 08:48:51 +0530 (Sun, 11 Jul 2010) | 9 lines Merged revisions 82780 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82780 | senthil.kumaran | 2010-07-11 08:42:43 +0530 (Sun, 11 Jul 2010) | 3 lines Stricter verification for file based url scheme and reliance on ftp protocol. ........ ................
| * | Merged revisions 81636 via svnmerge fromSenthil Kumaran2010-06-011-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81636 | senthil.kumaran | 2010-06-01 18:10:07 +0530 (Tue, 01 Jun 2010) | 3 lines Fix Issue8797 - urllib2 basic authentication fix for wrong passwords. It fails after 5 retries. ........
| * | Merged revisions 80953 via svnmerge fromSenthil Kumaran2010-05-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80953 | senthil.kumaran | 2010-05-08 08:41:50 +0530 (Sat, 08 May 2010) | 3 lines Fix Issue8656 - urllib2 mangles file://-scheme URLs ........
| * | Reverting the changes made in r78432. Discussed in the tracker issue7540.Senthil Kumaran2010-03-041-1/+0
| | |
| * | Merged revisions 78431 via svnmerge fromSenthil Kumaran2010-02-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78431 | senthil.kumaran | 2010-02-25 02:25:31 +0530 (Thu, 25 Feb 2010) | 4 lines Fix for Issue7540 ; urllib2 will raise a TypeError when you try to add_data to a existing req object already having data. ........
| * | Merged revisions 78422 via svnmerge fromSenthil Kumaran2010-02-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78422 | senthil.kumaran | 2010-02-24 22:15:46 +0530 (Wed, 24 Feb 2010) | 2 lines Fix for Issue3819 - urllib2 sends Basic auth across redirects ........
| * | Merged revisions 77411 via svnmerge fromSenthil Kumaran2010-01-101-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77411 | senthil.kumaran | 2010-01-10 23:05:05 +0530 (Sun, 10 Jan 2010) | 2 lines Fixed issue7648 - test_urllib2 fails on Windows if not run from C: ........
| * | Merged revisions 77014 via svnmerge fromBenjamin Peterson2009-12-241-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77014 | benjamin.peterson | 2009-12-23 19:09:53 -0600 (Wed, 23 Dec 2009) | 1 line fix alleged refleak ........
| * | Merged revisions 76908 via svnmerge fromSenthil Kumaran2009-12-201-31/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76908 | senthil.kumaran | 2009-12-20 11:35:13 +0530 (Sun, 20 Dec 2009) | 4 lines Fix for issue 7291 - urllib2 cannot handle https with proxy requiring auth Refactored HTTPHandler tests and added testcase for proxy authorization. ........
| * | Merged revisions 75333 via svnmerge fromSenthil Kumaran2009-10-111-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75333 | senthil.kumaran | 2009-10-11 07:30:07 +0530 (Sun, 11 Oct 2009) | 3 lines Fixed Issue6894, urllib2 doesn't respect "no_proxy" environment ........
| * | Backporting the changes made in revision 72880 as fix for Issue1424152.Senthil Kumaran2009-07-261-0/+15
| | |
| * | Fix for issue5102, timeout value propages between redirects, proxy, digest andSenthil Kumaran2009-07-191-2/+6
| | | | | | | | | | | | auth handlers. Fixed tests to reflect the same.
| * | Merged revisions ↵Benjamin Peterson2008-12-211-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 67654,67676-67677,67681,67692,67725,67746,67748,67761,67784-67785,67787-67788,67802,67832,67848-67849,67859,67862-67864,67880,67882,67885,67889-67892,67895 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ................ r67654 | georg.brandl | 2008-12-07 16:42:09 -0600 (Sun, 07 Dec 2008) | 2 lines #4457: rewrite __import__() documentation. ................ r67676 | benjamin.peterson | 2008-12-08 20:03:03 -0600 (Mon, 08 Dec 2008) | 1 line specify how things are copied ................ r67677 | benjamin.peterson | 2008-12-08 20:05:11 -0600 (Mon, 08 Dec 2008) | 1 line revert unrelated change to installer script ................ r67681 | jeremy.hylton | 2008-12-09 15:03:10 -0600 (Tue, 09 Dec 2008) | 2 lines Add simple unittests for Request ................ r67692 | amaury.forgeotdarc | 2008-12-10 18:03:42 -0600 (Wed, 10 Dec 2008) | 2 lines #1030250: correctly pass the dry_run option to the mkpath() function. ................ r67725 | benjamin.peterson | 2008-12-12 22:02:20 -0600 (Fri, 12 Dec 2008) | 1 line fix incorrect example ................ r67746 | antoine.pitrou | 2008-12-13 17:12:30 -0600 (Sat, 13 Dec 2008) | 3 lines Issue #4163: Use unicode-friendly word splitting in the textwrap functions when given an unicode string. ................ r67748 | benjamin.peterson | 2008-12-13 19:46:11 -0600 (Sat, 13 Dec 2008) | 1 line remove has_key usage ................ r67761 | benjamin.peterson | 2008-12-14 11:26:04 -0600 (Sun, 14 Dec 2008) | 1 line fix missing bracket ................ r67784 | georg.brandl | 2008-12-15 02:33:58 -0600 (Mon, 15 Dec 2008) | 2 lines #4446: document "platforms" argument for setup(). ................ r67785 | georg.brandl | 2008-12-15 02:36:11 -0600 (Mon, 15 Dec 2008) | 2 lines #4611: fix typo. ................ r67787 | georg.brandl | 2008-12-15 02:58:59 -0600 (Mon, 15 Dec 2008) | 2 lines #4578: fix has_key() usage in compiler package. ................ r67788 | georg.brandl | 2008-12-15 03:07:39 -0600 (Mon, 15 Dec 2008) | 2 lines #4568: remove limitation in varargs callback example. ................ r67802 | amaury.forgeotdarc | 2008-12-15 16:29:14 -0600 (Mon, 15 Dec 2008) | 4 lines #3632: the "pyo" macro from gdbinit can now run when the GIL is released. Patch by haypo. ................ r67832 | antoine.pitrou | 2008-12-17 16:46:54 -0600 (Wed, 17 Dec 2008) | 4 lines Issue #2467: gc.DEBUG_STATS reports invalid elapsed times. Patch by Neil Schemenauer, very slightly modified. ................ r67848 | benjamin.peterson | 2008-12-18 20:28:56 -0600 (Thu, 18 Dec 2008) | 1 line fix typo ................ r67849 | benjamin.peterson | 2008-12-18 20:31:35 -0600 (Thu, 18 Dec 2008) | 1 line _call_method -> _callmethod and _get_value to _getvalue ................ r67859 | amaury.forgeotdarc | 2008-12-19 16:56:48 -0600 (Fri, 19 Dec 2008) | 4 lines #4700: crtlicense.txt is displayed by the license() command and should be kept ascii-only. Will port to 3.0 ................ r67862 | benjamin.peterson | 2008-12-19 20:48:02 -0600 (Fri, 19 Dec 2008) | 1 line copy sentence from docstring ................ r67863 | benjamin.peterson | 2008-12-19 20:51:26 -0600 (Fri, 19 Dec 2008) | 1 line add headings ................ r67864 | benjamin.peterson | 2008-12-19 20:57:19 -0600 (Fri, 19 Dec 2008) | 1 line beef up docstring ................ r67880 | benjamin.peterson | 2008-12-20 16:49:24 -0600 (Sat, 20 Dec 2008) | 1 line remove redundant sentence ................ r67882 | benjamin.peterson | 2008-12-20 16:59:49 -0600 (Sat, 20 Dec 2008) | 1 line add some recent releases to the list ................ r67885 | benjamin.peterson | 2008-12-20 17:48:54 -0600 (Sat, 20 Dec 2008) | 1 line silence annoying DeprecationWarning ................ r67889 | benjamin.peterson | 2008-12-20 19:04:32 -0600 (Sat, 20 Dec 2008) | 1 line sphinx.web is long gone ................ r67890 | benjamin.peterson | 2008-12-20 19:12:26 -0600 (Sat, 20 Dec 2008) | 1 line update readme ................ r67891 | benjamin.peterson | 2008-12-20 19:14:47 -0600 (Sat, 20 Dec 2008) | 1 line there are way too many places which need to have the current version added ................ r67892 | benjamin.peterson | 2008-12-20 19:29:32 -0600 (Sat, 20 Dec 2008) | 9 lines Merged revisions 67809 via svnmerge from svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r67809 | benjamin.peterson | 2008-12-15 21:54:45 -0600 (Mon, 15 Dec 2008) | 1 line fix logic error ........ ................ r67895 | neal.norwitz | 2008-12-21 08:28:32 -0600 (Sun, 21 Dec 2008) | 2 lines Add Tarek for work on distutils. ................
* | | Merged revisions 87895 via svnmerge fromBenjamin Peterson2011-01-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87895 | lukasz.langa | 2011-01-09 12:18:53 -0600 (Sun, 09 Jan 2011) | 5 lines #10874: test_urllib2 shouldn't use `is` operator for comparing strings Patch by Adreas Stührk. ........
* | | Merged revisions 86676 via svnmerge fromSenthil Kumaran2010-11-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86676 | senthil.kumaran | 2010-11-22 12:48:26 +0800 (Mon, 22 Nov 2010) | 4 lines Fix Issue4493 - urllib2 adds '/' to the path component of url, when it does not starts with one. This behavior is exhibited by browser and other clients. ........
* | | Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
* | | Merged revisions 86520 via svnmerge fromSenthil Kumaran2010-11-201-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86520 | senthil.kumaran | 2010-11-18 23:36:41 +0800 (Thu, 18 Nov 2010) | 3 lines Fix Issue2244 - urllib unquotes user and password info multiple times - Patch by Theodore Turocy ........
* | | Merged revisions 83818 via svnmerge fromSenthil Kumaran2010-08-081-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83818 | senthil.kumaran | 2010-08-08 16:57:53 +0530 (Sun, 08 Aug 2010) | 4 lines Fix Issue8280 - urllib2's Request method will remove fragements in the url. This is how it should work,wget and curl work like this way too. Old behavior was wrong. ........
* | | Merged revisions 82780 via svnmerge fromSenthil Kumaran2010-07-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82780 | senthil.kumaran | 2010-07-11 08:42:43 +0530 (Sun, 11 Jul 2010) | 3 lines Stricter verification for file based url scheme and reliance on ftp protocol. ........
* | | Fix Issue8797 - urllib2 basic authentication fix for wrong passwords. It ↵Senthil Kumaran2010-06-011-1/+0
| | | | | | | | | | | | fails after 5 retries.
* | | Fix Issue8656 - urllib2 mangles file://-scheme URLsSenthil Kumaran2010-05-081-1/+2
| | |
* | | In a number of places code still reversRonald Oussoren2010-05-051-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | to "sys.platform == 'mac'" and that is dead code because it refers to a platform that is no longer supported (and hasn't been supported for several releases). Fixes issue #7908 for the trunk.
* | | Reverting the change made in r78431.Senthil Kumaran2010-03-071-1/+0
| | |
* | | Fix for Issue7540 ; urllib2 will raise a TypeError when you try to add_data toSenthil Kumaran2010-02-241-0/+1
| | | | | | | | | | | | a existing req object already having data.
* | | Fix for Issue3819 - urllib2 sends Basic auth across redirectsSenthil Kumaran2010-02-241-1/+2
| | |