summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #12923: Reset FancyURLopener's redirect counter even on exceptionMartin Panter2016-02-041-11/+13
| | | | Based on patches by Brian Brazil and Daniel Rocco.
* Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-5/+10
| | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* Issue #23881: urllib.ftpwrapper constructor now closes the socket if the FTPVictor Stinner2015-04-071-1/+5
| | | | connection failed.
* give urllib.urlopen a context parameter (closes #22927)Benjamin Peterson2014-11-241-9/+15
|
* Issue #20270: urllib and urlparse now support empty ports.Serhiy Storchaka2014-01-181-8/+11
|
* Fix #17967 - Fix related to regression on Windows.Senthil Kumaran2013-06-021-1/+2
| | | | | os.path.join(*self.dirs) produces an invalid path on windows. ftp paths are always forward-slash seperated like this. /pub/dir.
* Fix thishost helper funtion in urllib. Returns the ipaddress of localhost whenSenthil Kumaran2013-06-011-1/+4
| | | | | hostname is resolvable by socket.gethostname for local machine. This all fixes certain freebsd builtbot failures.
* Fix #17967: For ftp urls CWD to target instead of hopping to each directorySenthil Kumaran2013-06-011-2/+1
| | | | | towards target. This fixes a bug where target is accessible, but parent directories are restricted.
* Issue #1285086: Get rid of the refcounting hack and speed up urllib.unquote().Serhiy Storchaka2013-03-141-9/+23
|
* Fix the urllib closing issue which hangs on particular ftp urls/ftp servers. ↵Senthil Kumaran2012-03-151-1/+1
| | | | closes issue11199
* Fix Issue6631 - Disallow relative files paths in urllib*.open()Senthil Kumaran2012-01-211-0/+2
|
* - Issue #13642: Unquote before b64encoding user:password during BasicSenthil Kumaran2012-01-101-5/+6
| | | | Authentication. Patch contributed by Joonas Kuorilehto and Michele Orrù.
* Issue #8035: urllib: Fix a bug where the client could remain stuck after aCharles-François Natali2011-12-181-2/+0
| | | | redirection or an error.
* Port to 2.7 - issue 10817 - Fix urlretrieve function to raiseSenthil Kumaran2011-10-311-2/+2
| | | | ContentTooShortError even when reporthook is None. Patch by Jyrki Pulliainen.
* whitespace fix.Senthil Kumaran2011-08-071-1/+0
|
* Remove the old dead test program within the module in 2.7.Senthil Kumaran2011-08-071-62/+0
|
* Fix closes issue12698 - make the no_proxy environment variable handling a ↵Senthil Kumaran2011-08-061-1/+2
| | | | bit lenient (accomodate spaces in between the items)
* Fix typo in dbf1e1a27427 that was causing some buildbots to fail.Nadeem Vawda2011-07-231-1/+1
|
* Issue #10883: Fix socket leaks in urllib.request.Nadeem Vawda2011-07-231-5/+22
| | | | | | | | * 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.
* Merge issue 11662 from 2.6.Guido van Rossum2011-03-291-0/+12
|\
| * Merge issue 11662 from 2.5.Guido van Rossum2011-03-291-0/+12
| |\
| | * Add tests for the urllib[2] vulnerability. Change to raise exceptions.guido@google.com2011-03-281-4/+6
| | |
| | * Add FTP to the allowed url schemes. Add Misc/NEWS.guido@google.com2011-03-241-2/+3
| | |
| | * Issue 22663: fix redirect vulnerability in urllib/urllib2.guido@google.com2011-03-241-2/+11
| | |
| | * Bug #767111: fix long-standing bug in urllib which caused anGeorg Brandl2007-03-141-0/+8
| | | | | | | | | | | | | | | | | | AttributeError instead of an IOError when the server's response didn't contain a valid HTTP status line. (backport from rev. 54376)
| | * Patch #1678662: ftp.python.org does not exist. So the testcode in urllib.py ↵Collin Winter2007-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | must use a more stable FTP. Backported from r54278.
| | * [Patch #1617413 from Dug Song] Fix HTTP Basic authentication via HTTPSAndrew M. Kuchling2006-12-191-2/+2
| | |
| | * [Patch #1574068 by Scott Dial] urllib and urllib2 were usingAndrew M. Kuchling2006-10-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | base64.encodestring() for encoding authentication data. encodestring() can include newlines for very long input, which produced broken HTTP headers. 2.4 backport candidate, probably.
| * | Rolled back revisions 81259,81265 via svnmerge fromFlorent Xicluna2010-08-121-33/+26
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk (due to 2.6.6 release candidate freeze)
| * | Merged revisions 81053,81259,81265 via svnmerge fromFlorent Xicluna2010-08-091-25/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81053 | florent.xicluna | 2010-05-10 21:59:22 +0200 (lun., 10 mai 2010) | 2 lines Add a link on maketrans(). ........ r81259 | florent.xicluna | 2010-05-17 12:39:07 +0200 (lun., 17 mai 2010) | 2 lines Slight style cleanup. ........ 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. ........
| * | Merged revisions 82897 via svnmerge fromSenthil Kumaran2010-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/release27-maint ................ r82897 | senthil.kumaran | 2010-07-15 01:52:17 +0530 (Thu, 15 Jul 2010) | 9 lines Merged revisions 82895 via svnmerge from 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 82892 via svnmerge fromSenthil Kumaran2010-07-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/release27-maint ................ r82892 | senthil.kumaran | 2010-07-15 00:55:26 +0530 (Thu, 15 Jul 2010) | 9 lines Merged revisions 82890 via svnmerge from 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 82284 via svnmerge fromRonald Oussoren2010-06-271-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 80675 via svnmerge fromSenthil Kumaran2010-05-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 79047 via svnmerge fromSenthil Kumaran2010-03-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79047 | senthil.kumaran | 2010-03-18 17:44:15 +0530 (Thu, 18 Mar 2010) | 3 lines Fix for Issue8135 - urllib.unquote to support mixed percent escapes ........
| * | Merged revisions 78268 via svnmerge fromSenthil Kumaran2010-02-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78268 | senthil.kumaran | 2010-02-21 03:35:34 +0530 (Sun, 21 Feb 2010) | 3 lines Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo") ........
| * | Merged revisions 78035,78040,78043,78049-78050,78052-78054 via svnmerge fromGeorg Brandl2010-02-071-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78035 | georg.brandl | 2010-02-06 23:44:17 +0100 (Sa, 06 Feb 2010) | 1 line Fix duplicate import. ........ r78040 | georg.brandl | 2010-02-07 00:08:00 +0100 (So, 07 Feb 2010) | 1 line Fix a few UnboundLocalErrors in test_long. ........ r78043 | georg.brandl | 2010-02-07 00:12:19 +0100 (So, 07 Feb 2010) | 1 line Remove duplicate test method. ........ r78049 | georg.brandl | 2010-02-07 00:33:33 +0100 (So, 07 Feb 2010) | 1 line Fix import/access for some identifiers. _TestSharedCTypes does not seem to be executed? ........ r78050 | georg.brandl | 2010-02-07 00:34:10 +0100 (So, 07 Feb 2010) | 1 line Fix more unbound locals in code paths that do not seem to be used. ........ r78052 | georg.brandl | 2010-02-07 00:54:04 +0100 (So, 07 Feb 2010) | 1 line Add missing import when running these tests standalone. ........ r78053 | georg.brandl | 2010-02-07 00:54:43 +0100 (So, 07 Feb 2010) | 1 line Fix some name errors in Mac modules. ........ r78054 | georg.brandl | 2010-02-07 00:58:25 +0100 (So, 07 Feb 2010) | 1 line Add missing import. ........
| * | Merged revisions 75482 via svnmerge fromRonald Oussoren2009-10-181-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75482 | ronald.oussoren | 2009-10-18 09:07:00 +0200 (Sun, 18 Oct 2009) | 3 lines Fix for issue 7149: a regression in 2.6.3 that causes an exception when trying to detect proxy settings on OSX. ........
| * | Merged revisions 74964 via svnmerge fromRonald Oussoren2009-09-201-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74964 | ronald.oussoren | 2009-09-20 12:54:07 +0200 (Sun, 20 Sep 2009) | 2 lines Followup for r74962 ........
| * | Merged revisions 74962 via svnmerge fromRonald Oussoren2009-09-201-183/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74962 | ronald.oussoren | 2009-09-20 12:31:22 +0200 (Sun, 20 Sep 2009) | 2 lines Fix for issue 6851: urllib.urlopen crashes in a thread on OSX 10.6 ........
| * | Fixing Issue6557. urllib.urlopen will quote the space character within urls.Senthil Kumaran2009-08-151-0/+3
| | |
| * | Merged revisions 70521 via svnmerge fromBenjamin Peterson2009-03-221-35/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70521 | benjamin.peterson | 2009-03-22 12:45:11 -0500 (Sun, 22 Mar 2009) | 1 line close the file even if an exception occurs #5536 ........
* | | Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualifiedRonald Oussoren2011-03-141-1/+1
| | | | | | | | | | | | IP addresses in the proxy exception list.
* | | Merged revisions 86676 via svnmerge fromSenthil Kumaran2010-11-221-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ........
* | | Reverting the checkin made in revision 82940, as it was adding new ↵Senthil Kumaran2010-07-221-22/+4
| | | | | | | | | | | | | | | | | | parameters to quote function in a bugfix release. Discussed in issue1712522
* | | Fix Issue9301 - urllib.quote(None) to raise TypeErrorSenthil Kumaran2010-07-191-0/+2
| | |
* | | Fixing Issue1712522 - urllib.quote to support Unicode. The defaultSenthil Kumaran2010-07-181-4/+22
| | | | | | | | | | | | encoding='utf-8' and errors='strict'.
* | | 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. ........