Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Changes by Eric Raymond: | Guido van Rossum | 1998-09-28 | 1 | -14/+32 |
| | | | | | | | | | | | | 1. Generate a correct Content-Length header visible through the info() method if a request to open an FTP URL gets a length in the response to RETR. 2. Take a third argument to urlretrieve() that makes it possible to progress- meter an urlretrieve call (this is what I needed the above change for). See the second patch band below for details. 3. To avoid spurious errors, I commented out the gopher test. The target document no longer exists. | ||||
* | On the Mac, use Internet Config to find the proxies (Jack Jansen). | Guido van Rossum | 1998-08-06 | 1 | -15/+49 |
| | | | | Also added two XXX comments about lingering thread unsafeness. | ||||
* | Speed up the implementation of quote(). | Guido van Rossum | 1998-07-22 | 1 | -8/+17 |
| | | | | | | | | Fix the implementation of quote_plus(). (It wouldn't treat '+' in the original data right.) Add urlencode(dict) which is handy to create the data for sending a POST request with urlopen(). | ||||
* | Oops! Of course, Tim is right -- when the item is not a hex number, | Guido van Rossum | 1998-06-29 | 1 | -2/+2 |
| | | | | the '%' should be put back in. | ||||
* | Speed-up unquote(), inspired by post from Daniel Walton. | Guido van Rossum | 1998-06-28 | 1 | -18/+16 |
| | |||||
* | Rewrite the (test) main program so that when used as a script, it can | Guido van Rossum | 1998-06-25 | 1 | -5/+29 |
| | | | | retrieve one or more URLs to stdout. Use -t to run the self-test. | ||||
* | Use the getpass module instead of having platform-specific echo on/off | Guido van Rossum | 1998-06-12 | 1 | -18/+5 |
| | | | | code here. | ||||
* | Patches to make the proxy code work again. (Why does that always break | Guido van Rossum | 1998-05-05 | 1 | -2/+3 |
| | | | | | | as soon as I change things even just a little bit? :-) Even works when accessing a password-protected page through the proxy. Prompted by complaints from, and correct operation verified by, Nigel O'Brian. | ||||
* | Feeble attempt at making urlopen more robust -- don't call splituser() | Guido van Rossum | 1998-04-27 | 1 | -2/+6 |
| | | | | | when splithost() returned no useable host, to avoid calling splituser() on None. | ||||
* | Oops -- remove some debug print statements! | Guido van Rossum | 1998-04-11 | 1 | -4/+0 |
| | |||||
* | Oops, pulled over by the tab police :-) | Guido van Rossum | 1998-04-03 | 1 | -9/+9 |
| | |||||
* | Change by Sjoerd (with minor reformatting): | Guido van Rossum | 1998-04-03 | 1 | -4/+18 |
| | | | | | | | | | | guess the mime type of a local file. Change suggested by Sjoerd (with different implementation): when retrieve() creates a temporary file, preserve the suffix. Corrollary of the first change: also return the mime type of a local file in retrieve(). | ||||
* | A few lines were indented using spaces instead of tabs -- fix them. | Guido van Rossum | 1998-03-30 | 1 | -8/+8 |
| | |||||
* | A few lines were indented using spaces instead of tabs -- fix them. | Guido van Rossum | 1998-03-26 | 1 | -64/+65 |
| | |||||
* | Added support for "data" URL, by Sjoerd Mullender. | Guido van Rossum | 1998-03-12 | 1 | -0/+40 |
| | |||||
* | Fix a horrible race condition -- various routines were storing the | Guido van Rossum | 1998-02-13 | 1 | -9/+7 |
| | | | | | | | | | | | most recently opened URL in self.openedurl of the URLopener instance. This doesn't really work if multiple threads share the same opener instance! Fix: openedurl was actually simply the type prefix (e.g. "http:") followed by the rest of the URL; since the rest of the URL is available and the type is effectively determined by where you are in the code, I can reconstruct the full URL easily, e.g. "http:" + url. | ||||
* | Two suggested features by Sjoerd: | Guido van Rossum | 1998-02-05 | 1 | -6/+7 |
| | | | | | | - use the tempcache in the open() method, too. - use the "unwrap"ped url as key for the tempcache. | ||||
* | (1) Use matchobj.groups(), not matchbj.group() to get all groups. | Guido van Rossum | 1998-02-05 | 1 | -4/+8 |
| | | | | | (2) Provisional hack to avoid dying when trying to turn echo on or off on Macs, where os.system() doesn't exist. | ||||
* | Fix bad new bug in ftp code -- the test for existing file using NLST | Guido van Rossum | 1998-01-19 | 1 | -0/+4 |
| | | | | would set the transfer to text mode instead of the specified mode. | ||||
* | Solve two annoying problems with ftp URLs for Jack: when repeated | Guido van Rossum | 1997-12-28 | 1 | -0/+14 |
| | | | | | | | | | | retrieving files from the same host and directory, you had to close the previous instance before opening a new one; and retrieving a non-existent file would return an empty file. (The latter fix relies on maybe an undocumented property of NLST -- NLST of a file returns just that file, while NLST of a non-existent file returns nothing. A side effect, unfortunately, seems to be that now ftp-retrieving an *empty* directory may fail. Ah well.) | ||||
* | When a port is specified in an ftp:// URL, must convert it to a number! | Guido van Rossum | 1997-12-02 | 1 | -0/+2 |
| | |||||
* | Assert that the proxies object passed in to the URLopener constructor | Guido van Rossum | 1997-11-18 | 1 | -0/+1 |
| | | | | is indeed a dictionary (or a mapping). | ||||
* | This should hopefully finally clean up the remaining __del__ related | Guido van Rossum | 1997-10-27 | 1 | -9/+11 |
| | | | | | problems with this module, even if an instance of a derived class is kept alive longer than the urllib module itself... | ||||
* | splitpasswd(): The parameter is named "user", not "host". | Fred Drake | 1997-10-14 | 1 | -1/+1 |
| | |||||
* | Use sys.exc_info() where needed. | Guido van Rossum | 1997-09-29 | 1 | -44/+106 |
| | | | | Use "re" module, making it threadsafe. | ||||
* | Initialize self.__tempfiles to [] in the constructor (else it remains | Guido van Rossum | 1997-09-08 | 1 | -0/+1 |
| | | | | | a shared class variable -- but each instance will attempt to clean it up entirely ob cleanup). | ||||
* | One patch from Sjoerd and one from Jack. | Guido van Rossum | 1997-09-03 | 1 | -7/+14 |
| | | | | | | | | | | | Sjoerd: add separate administration of temporary files created y URLopener.retrieve() so cleanup can properly remove them. The old code removed everything in tempcache which was a bad idea if the user had passed a non-temp file into it. (I added a line to delete the tempcache in cleanup() -- it still seems to make sense.) Jack: in basejoin(), interpret relative paths starting in "../". This is necessary if the server uses symbolic links. | ||||
* | Explicitly close the socket and temp file in URLopener.retrieve(), so | Guido van Rossum | 1997-08-26 | 1 | -0/+2 |
| | | | | | | | | | that multiple retrievals using the same connection will work. This leaves open the more general problem that after f = urlopen("ftp://...") f must be closed before another retrieval from the same host should be attempted. | ||||
* | Interpret three slashes in file: URL as local file (for Netscape on | Guido van Rossum | 1997-08-20 | 1 | -4/+4 |
| | | | | Windows/Mac). | ||||
* | Clear the ftp cache when it contains more than 10 entries. | Guido van Rossum | 1997-06-06 | 1 | -2/+21 |
| | |||||
* | Catch *all* errors that ftplib can raise (ftplib.all_errors) rather | Guido van Rossum | 1997-06-06 | 1 | -8/+10 |
| | | | | | | than just the four. Also folded some long lines. | ||||
* | Add Host: header to URL request. | Guido van Rossum | 1997-06-03 | 1 | -1/+5 |
| | |||||
* | lowercase proxies env variables, for Windows. | Guido van Rossum | 1997-05-28 | 1 | -0/+1 |
| | |||||
* | spliturl() should not throw away everything past first newline | Guido van Rossum | 1997-04-16 | 1 | -2/+4 |
| | |||||
* | (Jack+Guido:) interpret ../ in basejoin() according to RFC1808. | Guido van Rossum | 1997-04-11 | 1 | -0/+7 |
| | |||||
* | Open files in binary mode. | Guido van Rossum | 1997-04-11 | 1 | -4/+4 |
| | |||||
* | Fix two small bugs with proxies. | Guido van Rossum | 1997-04-02 | 1 | -1/+2 |
| | |||||
* | Put a new, more useful, set of references in the leading comment. | Guido van Rossum | 1997-02-10 | 1 | -6/+13 |
| | |||||
* | Move the 'import os' in URLopener.cleanup() to inside the block | Guido van Rossum | 1997-01-30 | 1 | -1/+1 |
| | | | | | guarded by 'if self.tempcache', to reduce the likelihood of this causing an exception when invoked during __del__... | ||||
* | Added quote_plus() and unquote_plus(), to do space/plus substitutions | Guido van Rossum | 1996-12-13 | 1 | -0/+14 |
| | | | | for form field values. | ||||
* | Add optional data argument to urlopen() and open_http(), to trigger POST. | Guido van Rossum | 1996-12-10 | 1 | -9/+26 |
| | |||||
* | Added safeguard against failure in __del__. | Guido van Rossum | 1996-11-27 | 1 | -0/+2 |
| | |||||
* | When re-raising an exception raised by a module used internally as | Guido van Rossum | 1996-11-20 | 1 | -3/+5 |
| | | | | IOError, keep the traceback. | ||||
* | Fix the way the Authorization header is sent (how could this have worked?). | Guido van Rossum | 1996-11-11 | 1 | -1/+1 |
| | |||||
* | Fix another case where... | Guido van Rossum | 1996-10-22 | 1 | -0/+1 |
| | |||||
* | Fix some cases where self.openedurl wasn't set. | Guido van Rossum | 1996-10-10 | 1 | -2/+3 |
| | |||||
* | One fix by sjoerd and one suggested by him. Bumped __version__ to 1.5. | Guido van Rossum | 1996-09-10 | 1 | -9/+24 |
| | | | | | Fix 1: add a method geturl() to the file-like object returned by urlopen(). Fix 2: treat http error 301 the same as error 302. | ||||
* | Bump exposed __version__ to 1.4. | Guido van Rossum | 1996-08-26 | 1 | -6/+9 |
| | | | | Correctly handle a URL containing user:password@host when using a proxy. | ||||
* | Slightly faster (un)quoting. | Guido van Rossum | 1996-08-26 | 1 | -8/+8 |
| | |||||
* | add nturl2path | Guido van Rossum | 1996-06-26 | 1 | -0/+2 |
| |