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

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

Re: HTTP redirects make url-retrieve-synchronously asynchronous


From: Stefan Monnier
Subject: Re: HTTP redirects make url-retrieve-synchronously asynchronous
Date: Wed, 11 Jan 2006 16:11:39 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>>>> url-retrieve-synchronously becomes asynchronous when HTTP redirects
>>>>> are involved.  When it encounters a redirect, url-http-parse-headers
>>>>> calls url-retrieve instead of url-retrieve-synchronously.
>>>>> Naively switching to the latter doesn't solve the problem and
>>>>> I haven't been able to find a fix..
>>>> I believe I've fixed the problem with the patch below.
>>> Thanks, but this doesn't fix it for me.
>> Hmm... it does for me.  Have you recompiled the file?

> Yes.  I even ran one more 'cvs update; make maintainer-clean; make
> bootstrap'.  I must be missing something simple though because it still
> fails for me.

>>> In my original post I didn't make it completely clear that you have to set
>>> mm-url-use-external to nil.
>> 
>> That was obvious enough, otherwise the URL library isn't used.
>> I actually reproduced your problem while directly calling
>> url-retrieve-synchronously and the patch fixed the problem for me.

> For me, both before and after the patch, url-retrieve-synchronously creates
> two buffers: *http slashdot.org:80* and *http rss.slashdot.org:80*.

Funny, now that you mention it, I see in the piece of code that does what
you describe.  I'll have to try again and figure out why it seemed to work
for me.

This said, the problem is indeed probably (as you mentioned) in url-http
where it calls url-retrieve recursively (thus creating a new buffer).
I'm not sure how to fix it, yet.


        Stefan




reply via email to

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