summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
Commit message (Collapse)AuthorAgeFilesLines
* 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. ........
* Fix for Issue8883: without this patch test_urllib will failRonald Oussoren2010-06-271-2/+7
| | | | | when there is a bare IP address in the "Bypass proxy settings for these Hosts & Domains" list on MacOSX.
* Issue 8143: sync unquote in urlparse with urllib; add comment about doing so.R. David Murray2010-05-251-0/+4
| | | | | | | unquote is duplicated in the two files to avoid a circular reference. (This is fixed in Python3.) Updates keep getting made to the public unquote without fixing the urlparse one, however, so this fix syncs the two and adds a comment to both to make sure changes are applied to both.
* Issue #1285086: Speed up urllib.quote and urllib.unquote for simple cases.Florent Xicluna2010-05-171-17/+26
|
* Slight style cleanup.Florent Xicluna2010-05-171-8/+6
|
* 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.
* Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format stringSenthil Kumaran2010-05-011-1/+1
|
* Fix for Issue8135 - urllib.unquote to support mixed percent escapesSenthil Kumaran2010-03-181-2/+2
|
* Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo")Senthil Kumaran2010-02-201-1/+1
|
* No need to assign the results of expressions used only for side effects.Georg Brandl2010-02-061-2/+2
|
* Fix duplicate import.Georg Brandl2010-02-061-3/+2
|
* Fix transient refleaks in test_urllib. Thanks to Florent Xicluna.Antoine Pitrou2009-12-081-0/+2
|
* actually close filesPhilip Jenvey2009-12-031-6/+3
|
* Fix for issue 7149: a regression in 2.6.3 that causes an exception whenRonald Oussoren2009-10-181-2/+9
| | | | trying to detect proxy settings on OSX.
* Followup for r74962Ronald Oussoren2009-09-201-2/+1
|
* Fix for issue 6851: urllib.urlopen crashes in a thread on OSX 10.6Ronald Oussoren2009-09-201-183/+23
|
* Fix for Issue1648102, based on the MSDN spec: If this parameter specifies theSenthil Kumaran2009-05-011-10/+3
| | | | | "<local>" macro as the only entry, this function bypasses any host name that does not contain a period.
* Fix for the Issue918368 - urllib doesn't correct server returned urlsSenthil Kumaran2009-04-211-0/+3
|
* Fix for bugs: Issue4675 and Issue4962.Senthil Kumaran2009-03-301-1/+1
|
* close the file even if an exception occurs #5536Benjamin Peterson2009-03-221-35/+39
|
* Issue 4336: Let users of HTTPConnection.endheaders() submit a message body ↵Kristján Valur Jónsson2009-01-091-6/+2
| | | | to the function if required.
* #3879 fix a regression in urllib.getproxies_environmentBenjamin Peterson2008-09-211-3/+0
| | | | reviewers: Benjamin, Georg
* Handle urllib's renaming for Python 3.0:Brett Cannon2008-07-021-1/+6
| | | | | | | | * Deprecate urllib.urlopen() in favor of urllib2.urlopen() for 3.0. * Update docs to mention split/rename of the module and deprecation of urlopen(). Changes to lib2to3 are in a separate commit. Work is for issue #2885.
* Fixed the semantic of timeout for socket.create_connection andFacundo Batista2008-05-291-1/+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, :)
* MacOSX: ctypes annotation in implementation of getproxies_macosx_sysconfRonald Oussoren2008-05-181-1/+22
| | | | | | | | | getproxies_macosx_sysconf uses ctypes to call SystemConfiguration APIs. This checkin adds ctypes annotation to specify the right argument types for the API's that are used. This is needed to be able to use urllib on a 64-bit system, without annotations you'd get a hard crash.
* MacOSX: remove dependency on Carbon package for urllibRonald Oussoren2008-05-121-24/+194
| | | | | | | This patch removes the dependency on the Carbon package from urllib. The mac-specific code for getting proxy configuration is now writting in Python using ctypes and uses the SystemConfiguration framework instead of InternetConfig. Also provides a mac-specific implementation of proxy_bypass.
* #1664522: in urllib, don't read non-existing directories in ftp mode,Georg Brandl2008-01-201-3/+13
| | | | | returning a 0-byte file -- raise an IOError instead. Original patch from Phil Knirsch.
* #856047: respect the ``no_proxy`` env var when checking for proxiesGeorg Brandl2008-01-201-8/+44
| | | | | in urllib and using the other ``_proxy`` env vars. Original patch by Donovan Baarda.
* #1178141: add addinfourl.code to get http status code from urllib.Georg Brandl2008-01-201-4/+8
|
* Issue1177Kurt B. Kaiser2008-01-021-2/+2
| | | | | | | r58207 and r58247 patch logic is reversed. I noticed this when I tried to use urllib to retrieve a file which required auth. Fix that and add a test for 401 error to verify.
* #1177: accept 2xx responses for https too, not only http.Georg Brandl2007-09-241-1/+3
|
* issue1177: Ported Facundo's from urllib2 to urllib, accepting 2xx responses.Sean Reifscheider2007-09-191-1/+3
|
* This contains a number of things:Bill Janssen2007-08-291-1/+10
| | | | | | | | | | | | | | | | 1) Improve the documentation of the SSL module, with a fuller explanation of certificate usage, another reference, proper formatting of this and that. 2) Fix Windows bug in ssl.py, and general bug in sslsocket.close(). Remove some unused code from ssl.py. Allow accept() to be called on sslsocket sockets. 3) Use try-except-else in import of ssl in socket.py. Deprecate use of socket.ssl(). 4) Remove use of socket.ssl() in every library module, except for test_socket_ssl.py and test_ssl.py.
* Added an optional timeout parameter to urllib.ftpwrapper, with testsFacundo Batista2007-05-241-2/+3
| | | | | | (for this and a basic one, because there weren't any). Changed also NEWS, but didn't find documentation for this function, assumed it wasn't public...
* Remove the gopherlib module. It has been raising a DeprecationWarning sinceBrett Cannon2007-05-161-27/+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.
* Try to get test_urllib to pass on Windows by closing the file.Neal Norwitz2007-03-201-2/+4
| | | | | | | | | I'm guessing that's the problem. h.getfile() must be called *after* h.getreply() and the fp can be None. I'm not entirely convinced this is the best fix (or even correct). The buildbots will tell us if things improve or not. I don't know if this needs to be backported (assuming it actually works).
* 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.
* 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. Will backport.
* Use new email module names (#1637162, #1637159, #1637157).Georg Brandl2007-01-221-2/+2
|
* [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.
* Bug #1459963: properly capitalize HTTP header names.Georg Brandl2006-07-261-6/+6
|
* Patch #1470976: don't NLST files when retrieving over FTP.Georg Brandl2006-04-301-7/+0
|
* Fix a couple of strings that were no-ops. urllib.open_file was a docstringNeal Norwitz2006-04-091-1/+1
| | | | in 2.4, so put it back. The string in telnetlib looks like a comment.
* Revert r43399.Georg Brandl2006-03-281-6/+6
|
* Bug #1459963: urllib2 now normalizes HTTP header names correctlyGeorg Brandl2006-03-281-6/+6
| | | | with title().