summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
Commit message (Collapse)AuthorAgeFilesLines
* #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().
* Bug #1457264: parse http://host?query correctly in urllibGeorg Brandl2006-03-261-1/+1
|
* Patch #1426648: urllib proxy_bypass brokenGeorg Brandl2006-02-181-3/+10
|
* Whitespace normalization.Tim Peters2006-01-241-4/+4
|
* Patch #1349118: urllib2 now supports user:pass@ style proxyMartin v. Löwis2006-01-241-6/+93
| | | | | specifications, raises IOErrors when proxies for unsupported protocols are defined, and uses the https proxy on https redirections.
* Bug #649974: make docstrings for url2pathname consistentGeorg Brandl2005-12-261-0/+5
|
* bug #1365984: urllib and data: URLs. Problem was that cStringIO objects ↵Georg Brandl2005-11-261-2/+5
| | | | cannot be assigned attributes on the fly.
* Teach unquote() to handle unicode inputsRaymond Hettinger2005-10-151-0/+2
|
* Corrected version of 1.170Raymond Hettinger2005-09-101-6/+3
|
* Revert 1.170. Add tests.Raymond Hettinger2005-09-101-3/+6
|
* Simplify and speed-up unquote().Raymond Hettinger2005-09-101-15/+10
|
* Simplify and speed-up quote_plus().Raymond Hettinger2005-09-101-6/+3
|
* SF #1285086: urllib.quote is too slowRaymond Hettinger2005-09-091-24/+12
| | | | Simplify and speed-up quote() function.
* patch [ 810023 ] Fix for off-by-one bug in urllib.URLopener.retrieveGeorg Brandl2005-08-261-8/+6
|
* Patch [ 1062060 ] fix for 1016880 urllib.urlretrieve silently truncates dwnldGeorg Brandl2005-08-241-1/+15
|
* Use cStringIO where available.Raymond Hettinger2004-12-311-8/+23
|
* Added a usegmt flag to email.Utils.formatdate - this allows it to beAnthony Baxter2004-10-111-2/+2
| | | | | used to replace rfc822.formatdate for protocols like HTTP (where 'GMT' must be the timezone string).
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-1/+1
|
* Fix for #779167: use InternetConfig proxy settings on MacOSX (in additionJack Jansen2004-07-161-2/+5
| | | | to unix-style).
* Replace sequential split/join calls on strings with a single replace call.Brett Cannon2004-03-231-6/+2
| | | | Thanks Andrew Gaul.
* Replace code in urllib for basejoin (undocumented) with urlparse.urljoin .Brett Cannon2004-03-231-59/+2
| | | | | | | Test suites for urllib and urlparse run with each other's function to verify correctness of replacement and both test suites pass. Bumped urllib's __version__ attribute up a minor number.
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-5/+5
| | | | From SF patch #852334.
* [Bug #776542] open_https() generates a bad Authorization header because it ↵Andrew M. Kuchling2003-08-291-1/+1
| | | | calls .putheader() wrongly. Reported by Steffen Ries.
* More fixes according to SF 549151:Guido van Rossum2003-05-161-4/+8
| | | | | | | | - When redirecting, always use GET. This is common practice and more-or-less sanctioned by the HTTP standard. - Add a handler for 307 redirection, which becomes an error for POST, but a regular redirect for GET and HEAD.
* SF Patch 549151: urllib2 POSTs on redirectRaymond Hettinger2003-04-241-0/+4
| | | | (contributed by John J Lee)
* Fix docstring for URLOpener.retrieve() in regards to opening a local fileBrett Cannon2003-04-241-1/+1
|
* SF 698520: Iterator for urllib.URLOpenerRaymond Hettinger2003-03-091-0/+4
| | | | Contributed by Brett Cannon.
* Get rid of many apply() calls.Guido van Rossum2003-02-271-4/+4
|
* Use fdopen() to create file from fd.Jeremy Hylton2002-10-111-1/+1
|
* When testing for localhost/ first map to lower case. Spotted by Skip.Jack Jansen2002-09-121-1/+1
|
* Treat file://localhost/ as local too (same as file:/ and file:///).Jack Jansen2002-09-121-1/+1
| | | | Fixes #607789, bugfix candidate.