summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Modify splituser() method to allow an @ in the userinfo field.Raymond Hettinger2002-08-181-1/+1
| | | | | | | Jeremy reported that this is not allowed by RFC 2396; however, other tools support unescaped @'s so we should also. Apply SF patch 596581 closing bug 581529.
* Massive changes from SF 589982 (tempfile.py rewrite, by ZackGuido van Rossum2002-08-091-3/+5
| | | | | Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones.
* Fix SF #565414, FancyURLopener() needs to support **kwargsNeal Norwitz2002-06-111-2/+2
| | | | since the URLopener base class does and **kwargs are used in urlopen.
* Remove uses of the string and types modules:Walter Dörwald2002-06-031-8/+9
| | | | | | | | | | | | | | | | | | | | | | x in string.whitespace => x.isspace() type(x) in types.StringTypes => isinstance(x, basestring) isinstance(x, types.StringTypes) => isinstance(x, basestring) type(x) is types.StringType => isinstance(x, str) type(x) == types.StringType => isinstance(x, str) string.split(x, ...) => x.split(...) string.join(x, y) => y.join(x) string.zfill(x, ...) => x.zfill(...) string.count(x, ...) => x.count(...) hasattr(types, "UnicodeType") => try: unicode except NameError: type(x) != types.TupleTuple => not isinstance(x, tuple) isinstance(x, types.TupleType) => isinstance(x, tuple) type(x) is types.IntType => isinstance(x, int) Do not mention the string module in the rlcompleter docstring. This partially applies SF patch http://www.python.org/sf/562373 (with basestring instead of string). (It excludes the changes to unittest.py and does not change the os.stat stuff.)
* Replaced boolean tests with is None.Raymond Hettinger2002-06-021-5/+5
|
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-11/+11
|
* Don't require Unicode support.Guido van Rossum2002-05-241-2/+9
|
* Fix from SF bug #541980 (Jacques A. Vidrine).Guido van Rossum2002-04-151-1/+4
| | | | | | | When os.stat() for a file raises OSError, turn it into IOError per documentation. Bugfix candidate.
* Support manual proxy configuration for simple urlopen() operations.Fred Drake2002-04-041-5/+10
| | | | | | This change is similar to the supplied patch, but does not save the opener when a proxy configuration is specified. This closes SF patch #523415.
* Fix for a bug in the fix for SF bug 503031. This time the OP verifiedGuido van Rossum2002-04-021-2/+2
| | | | | | that it works. Bugfix candidate (this and the previous checkin, obviously).
* Hopeful fix for SF bug 503031: urllib.py: open_http() host problem.Guido van Rossum2002-03-311-1/+5
| | | | | | | I really can't test this, but from reading the discussion in that bug report, it's likely that this works. It may also close a whole bunch of other bug reports related to urllib and proxies on Windows, but who knows.
* time and socket were already imported in the module, no need to re-importNeal Norwitz2002-03-261-3/+1
|
* use stat attributes instead of tuple entriesWalter Dörwald2002-03-221-3/+2
| | | | and remove the unneccessary "import stat" statement.
* To make 'urllib.py -t' run again, change FTP URL to a file that actuallyAndrew M. Kuchling2002-03-181-1/+1
| | | | exists.
* SF #515024 remove unused variableNeal Norwitz2002-02-111-1/+0
|