summaryrefslogtreecommitdiffstats
path: root/Lib/urllib/request.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * merge from 3.1Senthil Kumaran2011-04-121-3/+6
| |\
| | * Fix Issue11703 - urllib2.geturl() does not return correct url when the ↵Senthil Kumaran2011-04-121-3/+6
| | | | | | | | | | | | original url contains #fragment. Patch Contribution by Santoso Wijaya.
* | | Merge Issue 11662 from 3.2 branch.guido@google.com2011-03-291-0/+27
|\ \ \ | |/ /
| * | Merge Issue 11662 from 3.1 branch.guido@google.com2011-03-291-0/+27
| |\ \ | | |/
| | * Issue 11662: Fix vulnerability in urllib/urllib2.guido@google.com2011-03-291-0/+27
| | | | | | | | | | | | (This version is a cleaned-up backport of a fix by Senthil Kumaran.)
* | | issue10883 - Silence some ftp related ResourceWarnings in test_urllib2net. ↵Senthil Kumaran2011-03-241-3/+7
|\ \ \ | |/ / | | | | | | Patch by Nadeem Vawda
| * | issue10883 - Silence some ftp related ResourceWarnings in test_urllib2net. ↵Senthil Kumaran2011-03-241-3/+7
| | | | | | | | | | | | Patch by Nadeem Vawda.
* | | Closes issue11563 test_urllibnet is triggering a ResourceWarning. Patch by ↵Senthil Kumaran2011-03-191-0/+6
|\ \ \ | |/ / | | | | | | Jeff McNeil.
| * | Closes issue11563 - test_urllibnet ResourceWarning. Patch by Jeff McNeil.Senthil Kumaran2011-03-191-0/+6
| | |
* | | Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified ↵Ronald Oussoren2011-03-141-48/+56
|\ \ \ | |/ / | | | | | | 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-48/+56
| |\ \ | | |/ | | | | | | 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-48/+56
| | | | | | | | | | | | | | | | | | IP addresses in the proxy exception list Patch by Scott Wilson.
| | * Merged revisions 87448 via svnmerge fromR. David Murray2010-12-231-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87448 | r.david.murray | 2010-12-23 14:44:49 -0500 (Thu, 23 Dec 2010) | 4 lines #4496: remove misleading comment and note that self.handlers is obsolete. self.handlers is still used in one urllib2 test, but not by the code iteslf. ........
| | * Merged revisions 86676 via svnmerge fromSenthil Kumaran2010-11-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 85025 via svnmerge fromSenthil Kumaran2010-09-271-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85025 | senthil.kumaran | 2010-09-27 06:56:03 +0530 (Mon, 27 Sep 2010) | 6 lines Fix Issue1595365 - Adding the req.headers after the un-redirect headers have been added. This helps in accidental overwritting of User-Agent header to default value. To preserve the old behavior, only headers not in unredirected headers will be updated. ........
| | * Merged revisions 84323 via svnmerge fromSenthil Kumaran2010-08-261-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84323 | senthil.kumaran | 2010-08-26 11:46:22 +0530 (Thu, 26 Aug 2010) | 3 lines Fix Issue8797 - Reset the basic auth retry count when response code is not 401. ........
| | * Merged revisions 84210 via svnmerge fromSenthil Kumaran2010-08-191-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84210 | senthil.kumaran | 2010-08-19 23:20:31 +0530 (Thu, 19 Aug 2010) | 3 lines Fix Issue9639 - reset the retry count on successful auth. ........
| | * Merged revisions 76719,81270-81272,83294,83319,84038-84039 via svnmerge fromFlorent Xicluna2010-08-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r76719 | antoine.pitrou | 2009-12-08 20:38:17 +0100 (mar., 08 déc. 2009) | 9 lines Merged revisions 76718 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r76718 | antoine.pitrou | 2009-12-08 20:35:12 +0100 (mar., 08 déc. 2009) | 3 lines Fix transient refleaks in test_urllib. Thanks to Florent Xicluna. ........ ................ r81270 | florent.xicluna | 2010-05-17 19:24:07 +0200 (lun., 17 mai 2010) | 9 lines Merged revision 81259 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81259 | florent.xicluna | 2010-05-17 12:39:07 +0200 (lun, 17 mai 2010) | 2 lines Slight style cleanup. ........ ................ r81271 | florent.xicluna | 2010-05-17 19:33:07 +0200 (lun., 17 mai 2010) | 11 lines Issue #1285086: Speed up urllib.parse functions: quote, quote_from_bytes, unquote, unquote_to_bytes. Recorded merge of revisions 81265 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81265 | florent.xicluna | 2010-05-17 15:35:09 +0200 (lun, 17 mai 2010) | 2 lines Issue #1285086: Speed up urllib.quote and urllib.unquote for simple cases. ........ ................ r81272 | florent.xicluna | 2010-05-17 20:01:22 +0200 (lun., 17 mai 2010) | 2 lines Inadvertently removed part of the comment in r81271. ................ r83294 | senthil.kumaran | 2010-07-30 21:34:36 +0200 (ven., 30 juil. 2010) | 2 lines Fix issue9301 - handle unquote({}) kind of case. ................ r83319 | florent.xicluna | 2010-07-31 10:56:55 +0200 (sam., 31 juil. 2010) | 2 lines Fix an oversight in r83294. unquote() should reject bytes. Issue #9301. ................ r84038 | florent.xicluna | 2010-08-14 20:30:35 +0200 (sam., 14 août 2010) | 1 line Silence the BytesWarning, due to patch r83294 for #9301 ................ r84039 | florent.xicluna | 2010-08-14 22:51:58 +0200 (sam., 14 août 2010) | 1 line Silence BytesWarning while testing exception ................
| | * Merged revisions 83818 via svnmerge fromSenthil Kumaran2010-08-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 83729 via svnmerge fromSenthil Kumaran2010-08-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83729 | senthil.kumaran | 2010-08-04 23:16:23 +0530 (Wed, 04 Aug 2010) | 3 lines Sending the auth info as string. Fix BytesWarning: str() on a bytes instance Exception on buildbot. ........
| | * Merged revisions 83415 via svnmerge fromSenthil Kumaran2010-08-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83415 | senthil.kumaran | 2010-08-01 23:23:37 +0530 (Sun, 01 Aug 2010) | 3 lines Fix Issue8123 - TypeError in urllib when trying to use HTTP authentication ........
| | * Merged revisions 82895 via svnmerge fromSenthil Kumaran2010-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82895 | senthil.kumaran | 2010-07-15 01:40:52 +0530 (Thu, 15 Jul 2010) | 3 lines Fix a mistake, https proxy shoud be https:// ........
| | * Merged revisions 82890 via svnmerge fromSenthil Kumaran2010-07-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82890 | senthil.kumaran | 2010-07-15 00:45:23 +0530 (Thu, 15 Jul 2010) | 3 lines Fix: Issue6853 - Get HTTPS system proxy in Windows. ........
| | * Merged revisions 82780 via svnmerge fromSenthil Kumaran2010-07-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 82286 via svnmerge fromRonald Oussoren2010-06-271-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r82286 | ronald.oussoren | 2010-06-27 16:26:30 +0200 (Sun, 27 Jun 2010) | 11 lines Merged revisions 82284 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r82284 | ronald.oussoren | 2010-06-27 15:59:39 +0200 (Sun, 27 Jun 2010) | 4 lines Fix for Issue8883: without this patch test_urllib will fail when there is a bare IP address in the "Bypass proxy settings for these Hosts & Domains" list on MacOSX. ........ ................
| | * Merged revisions 82068 via svnmerge fromSenthil Kumaran2010-06-181-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82068 | senthil.kumaran | 2010-06-18 20:38:18 +0530 (Fri, 18 Jun 2010) | 3 lines Fix Issue1368368 - prompt_user_passwd() in FancyURLopener masks 401 Unauthorized error page ........
| | * Merged revisions 81638 via svnmerge fromSenthil Kumaran2010-06-011-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 81024 via svnmerge fromMark Dickinson2010-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r81024 | mark.dickinson | 2010-05-09 13:16:29 +0100 (Sun, 09 May 2010) | 1 line Fix test_urllib2 failure on OS X. ........
| | * Merged revisions 80959 via svnmerge fromSenthil Kumaran2010-05-081-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80959 | senthil.kumaran | 2010-05-08 10:42:05 +0530 (Sat, 08 May 2010) | 9 lines Merged revisions 80957 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80957 | senthil.kumaran | 2010-05-08 10:30:11 +0530 (Sat, 08 May 2010) | 2 lines Fixing the errors trigerred in test_urllib2net. Related to issue8656. ........ ................
| | * 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 ........ ................
| | * Merged revisions 80677 via svnmerge fromSenthil Kumaran2010-05-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80677 | senthil.kumaran | 2010-05-01 13:59:18 +0530 (Sat, 01 May 2010) | 9 lines Merged revisions 80675 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80675 | senthil.kumaran | 2010-05-01 13:31:56 +0530 (Sat, 01 May 2010) | 3 lines Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format string ........ ................
| | * Merged revisions 80198 via svnmerge fromRonald Oussoren2010-04-181-27/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r80198 | ronald.oussoren | 2010-04-18 22:46:11 +0200 (Sun, 18 Apr 2010) | 4 lines For for issue #7154: Port the code that uses the SystemConfiguration framework to detect the proxy settings on OSX from the trunk to python 3.2 ........
| | * Reverting the change made in r78434Senthil Kumaran2010-03-071-3/+0
| | |
| | * Merged revisions 78433 via svnmerge fromSenthil Kumaran2010-02-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 78270 via svnmerge fromSenthil Kumaran2010-02-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r78270 | senthil.kumaran | 2010-02-21 03:49:04 +0530 (Sun, 21 Feb 2010) | 4 lines Merged revisions 78268 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........
| | * Merged revisions 77060 via svnmerge fromSenthil Kumaran2009-12-271-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77060 | senthil.kumaran | 2009-12-27 15:43:39 +0530 (Sun, 27 Dec 2009) | 10 lines Merged revisions 77058 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77058 | senthil.kumaran | 2009-12-27 14:41:09 +0530 (Sun, 27 Dec 2009) | 4 lines Fix for issue5625 - test_urllib2 fails - urlopen error file not on local host. This is on hosts with multiple ip addresses. ........ ................
| | * Merged revisions 76910 via svnmerge fromSenthil Kumaran2009-12-201-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 76290 via svnmerge fromSenthil Kumaran2009-11-151-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r76290 | senthil.kumaran | 2009-11-15 14:13:45 +0530 (Sun, 15 Nov 2009) | 10 lines Merged revisions 76288 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r76288 | senthil.kumaran | 2009-11-15 14:06:20 +0530 (Sun, 15 Nov 2009) | 3 lines Fix for Issue4683 - urllib2.HTTPDigestAuthHandler fails on third hostname?. Resolution: Reset the nonce value for each unique nonce (as per RFC 2617) ........ ................
| | * Merged revisions 76284 via svnmerge fromSenthil Kumaran2009-11-151-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r76284 | senthil.kumaran | 2009-11-15 11:50:55 +0530 (Sun, 15 Nov 2009) | 9 lines Merged revisions 76282 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r76282 | senthil.kumaran | 2009-11-15 11:40:30 +0530 (Sun, 15 Nov 2009) | 3 lines Addition of some details in the code comments. ........ ................
| | * Merged revisions 75334 via svnmerge fromSenthil Kumaran2009-10-111-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ........ ................
| | * Backport the changes made in revision 74198, fixing the issue 1424152Senthil Kumaran2009-07-261-3/+12
| | |
| | * Fix for issue5102, timeout value propages between redirects, proxy, digest andSenthil Kumaran2009-07-191-4/+4
| | | | | | | | | | | | auth handlers. Fixed tests to reflect the same.
* | | Normalize the encoding names for Latin-1 and UTF-8 toMarc-André Lemburg2011-02-251-1/+1
|/ / | | | | | | | | | | | | | | | | | | 'latin-1' and 'utf-8'. These are optimized in the Python Unicode implementation to result in more direct processing, bypassing the codec registry. Also see issue11303.
* | Fixed issue11082 - Reject str for POST data with a TypeError. Document the ↵Senthil Kumaran2011-02-111-0/+3
| | | | | | | | need to explicitly encode to bytes when using urlencode.
* | Remove lots of spaces within exception message.Georg Brandl2011-02-031-2/+2
| |
* | Fix some mistakes- Issue3243 (r87399) Correcting the operator precendenceSenthil Kumaran2010-12-241-1/+1
| | | | | | | | problem with Content-Length header and uncommenting the test.
* | #4496: remove misleading comment and note that self.handlers is obsolete.R. David Murray2010-12-231-3/+2
| | | | | | | | self.handlers is still used in one urllib2 test, but not by the code iteslf.
* | #3243 follow-up: remove debugging print and fix docs; data is a bytes object.v3.2b2Georg Brandl2010-12-191-1/+0
| |