emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

url-retrieve bad handling of redirections


From: Lennart Borgman
Subject: url-retrieve bad handling of redirections
Date: Mon, 27 Jun 2005 23:24:29 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

I am using url-retrieve and url-retrieve-synchronously to fetch URLs. When the web pages fetched are redirected the callback routines are called with unexpected parameters. I am not quite sure of all the details but the most common error is that the callback parameter for the file name to save instead has the redirection url.

This is not documented. It is also quite bad since the file name for saving is no longer available.

There is also another bug. When trying to follow a link that is pointing to a directory but with the trailing slash omitted I get back just an empty buffer.

I have done a workaround for the first case - by following the redirection links. This workaround however prevents asynchronously download. Please see this link for test cases (and my work around):

   http://ourcomments.org/Emacs/DL/inst/url-dl.el


In GNU Emacs 22.0.50.1 (i386-mingw-nt5.0.2195)
Compiled from CVS 2005-06-20.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]