summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Issue12541 - Add UserWarning for unquoted realmsSenthil Kumaran2012-05-151-5/+6
|
* Issue #12541: Be lenient with quotes around Realm field of HTTP Basic ↵Senthil Kumaran2012-05-151-0/+15
| | | | | | Authentation in urllib2. G: changed Misc/NEWS
* Issue13696 - Fix 302 Redirection for Relative urls.Senthil Kumaran2012-01-041-0/+13
|
* Issue #13211: Add .reason attribute to HTTPError to implement parent class ↵Jason R. Coombs2011-11-071-0/+11
| | | | (URLError) interface.
* Remove duplication.Ezio Melotti2011-10-191-1/+1
|
* 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: fix a ResourceWarning in urllib.requestVictor Stinner2011-06-171-0/+3
| | | | | | AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if its getresponse() method fails with a socket error. Patch written by Ezio Melotti.
* merge from 3.1Senthil Kumaran2011-04-121-1/+14
|\
| * Fix Issue11703 - urllib2.geturl() does not return correct url when the ↵Senthil Kumaran2011-04-121-1/+14
| | | | | | | | original url contains #fragment. Patch Contribution by Santoso Wijaya.
* | Merge Issue 11662 from 3.1 branch.guido@google.com2011-03-291-0/+24
|\ \ | |/
| * Issue 11662: Fix vulnerability in urllib/urllib2.guido@google.com2011-03-291-0/+24
| | | | | | | | (This version is a cleaned-up backport of a fix by Senthil Kumaran.)
* | Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified ↵Ronald Oussoren2011-03-141-1/+34
|\ \ | |/ | | | | IP addresses in the proxy exception list.
| * Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified ↵Ronald Oussoren2011-03-141-1/+34
| | | | | | | | | | | | IP addresses in the proxy exception list Patch by Scott Wilson.
| * 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 86520 via svnmerge fromSenthil Kumaran2010-11-181-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 ↵Florent Xicluna2010-08-141-24/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 83212,83829,83833,83838-83839,83878,84019,84025,84028,84032,84036 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83212 | florent.xicluna | 2010-07-28 18:39:41 +0200 (mer., 28 juil. 2010) | 2 lines Syntax cleanup. ........ r83829 | florent.xicluna | 2010-08-08 18:16:07 +0200 (dim., 08 août 2010) | 2 lines Use unittest specific methods for some urllib test cases. And replace urllib2 with urllib.request in comments. ........ r83833 | florent.xicluna | 2010-08-08 18:25:27 +0200 (dim., 08 août 2010) | 2 lines Add test case for the HTTPResponse being an iterable. Follow-up of issue #4608. ........ r83838 | florent.xicluna | 2010-08-08 20:03:44 +0200 (dim., 08 août 2010) | 2 lines Typo. ........ r83839 | florent.xicluna | 2010-08-08 20:06:13 +0200 (dim., 08 août 2010) | 2 lines Issue #7564: Skip test_ioctl if another process is attached to /dev/tty. ........ r83878 | florent.xicluna | 2010-08-09 10:29:08 +0200 (lun., 09 août 2010) | 1 line Merge the 2to3 script from /sandbox/trunk/2to3/2to3, revision 72867 (latest). ........ r84019 | florent.xicluna | 2010-08-14 17:56:42 +0200 (sam., 14 août 2010) | 11 lines Merged manually from 2.7 branch to 3.x trunk. ------------------------------------------------------------------------ r79925 | nick.coghlan | 2010-04-10 16:24:36 +0200 (sam. 10 avril 2010) Try to turn some buildbots green by allowing test_multiprocessing to pass even if it hits the sys.exc_clear code in the threading module, and improve the test coverage by making the ctypes dependencies a bit more granular (two of the cited ctypes objects don't exist on my system) ------------------------------------------------------------------------ ........ r84025 | florent.xicluna | 2010-08-14 18:56:27 +0200 (sam., 14 août 2010) | 1 line List Misc/python-config.in in Misc/README. Fix few typos. ........ r84028 | florent.xicluna | 2010-08-14 19:02:49 +0200 (sam., 14 août 2010) | 1 line Fix order. ........ r84032 | florent.xicluna | 2010-08-14 19:15:31 +0200 (sam., 14 août 2010) | 1 line Convert to spaces. ........ r84036 | florent.xicluna | 2010-08-14 20:03:19 +0200 (sam., 14 août 2010) | 1 line Remove bad merge (from svnmerge r82301) ........
| * 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. ........
| * Merged revisions 81638 via svnmerge fromSenthil Kumaran2010-06-011-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81638 | senthil.kumaran | 2010-06-01 18:23:48 +0530 (Tue, 01 Jun 2010) | 9 lines Merged revisions 81636 via svnmerge from 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 80955 via svnmerge fromSenthil Kumaran2010-05-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80955 | senthil.kumaran | 2010-05-08 08:59:09 +0530 (Sat, 08 May 2010) | 9 lines Merged revisions 80953 via svnmerge from 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 change made in r78434Senthil Kumaran2010-03-071-1/+0
| |
| * Merged revisions 78433 via svnmerge fromSenthil Kumaran2010-02-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78433 | senthil.kumaran | 2010-02-25 02:33:37 +0530 (Thu, 25 Feb 2010) | 10 lines Merged revisions 78431 via svnmerge from 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 78426 via svnmerge fromSenthil Kumaran2010-02-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78426 | senthil.kumaran | 2010-02-24 22:23:16 +0530 (Wed, 24 Feb 2010) | 9 lines Merged revisions 78422 via svnmerge from 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 77414 via svnmerge fromSenthil Kumaran2010-01-101-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77414 | senthil.kumaran | 2010-01-10 23:15:52 +0530 (Sun, 10 Jan 2010) | 9 lines Merged revisions 77411 via svnmerge from 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 77016 via svnmerge fromBenjamin Peterson2009-12-241-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77016 | benjamin.peterson | 2009-12-23 19:14:05 -0600 (Wed, 23 Dec 2009) | 9 lines Merged revisions 77014 via svnmerge from 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 76910 via svnmerge fromSenthil Kumaran2009-12-201-37/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r76910 | senthil.kumaran | 2009-12-20 12:40:31 +0530 (Sun, 20 Dec 2009) | 10 lines Merged revisions 76908 via svnmerge from 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 75334 via svnmerge fromSenthil Kumaran2009-10-111-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r75334 | senthil.kumaran | 2009-10-11 10:28:55 +0530 (Sun, 11 Oct 2009) | 9 lines Merged revisions 75333 via svnmerge from 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 ........ ................
| * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-29/+29
| | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
| * Backport the changes made in revision 74198, fixing the issue 1424152Senthil Kumaran2009-07-261-0/+17
| |
| * Fix for issue5102, timeout value propages between redirects, proxy, digest andSenthil Kumaran2009-07-191-2/+6
| | | | | | | | auth handlers. Fixed tests to reflect the same.
* | Fixed issue11082 - Reject str for POST data with a TypeError. Document the ↵Senthil Kumaran2011-02-111-4/+8
| | | | | | | | need to explicitly encode to bytes when using urlencode.
* | #10874: test_urllib2 shouldn't use `is` operator for comparing stringsŁukasz Langa2011-01-091-1/+1
| | | | | | | | Patch by Adreas Stührk.
* | Fix some mistakes- Issue3243 (r87399) Correcting the operator precendenceSenthil Kumaran2010-12-241-2/+0
| | | | | | | | problem with Content-Length header and uncommenting the test.
* | Issue3243 - Support iterable bodies in httplib. Patch contributions by ↵Senthil Kumaran2010-12-191-3/+48
| | | | | | | | Xuanji Li and Chris AtLee.
* | Fix Issue4493 - urllib2 adds '/' to the path component of url, when it does notSenthil Kumaran2010-11-221-0/+19
| | | | | | | | starts with one. This behavior is exhibited by browser and other clients.
* | Fix Issue2244 - urllib unquotes user and password info multiple times - ↵Senthil Kumaran2010-11-181-5/+15
| | | | | | | | Patch by Theodore Turocy
* | Issue10063 - file:// scheme will stop accessing remote hosts via ftp protocolSenthil Kumaran2010-10-141-2/+2
| |
* | Use unittest specific methods for some urllib test cases. And replace ↵Florent Xicluna2010-08-081-24/+23
| | | | | | | | urllib2 with urllib.request in comments.
* | Fix Issue8280 - urllib2's Request method will remove fragements in the url.Senthil Kumaran2010-08-081-0/+10
| | | | | | | | This is how it should work,wget and curl work like this way too. Old behavior was wrong.
* | Issue #9425: skip tests if a filename is not encodableVictor Stinner2010-08-071-0/+4
| |
* | Stricter verification for file based url scheme and reliance on ftp protocol.Senthil Kumaran2010-07-111-0/+3
| |
* | 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 ........
* | Remove traces of MacOS9 support.Ronald Oussoren2010-05-051-5/+0
| | | | | | | | Fix for issue #7908
* | Reverting the changes made in r78433.Senthil Kumaran2010-03-071-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 ........