From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [happy@mcplaksin.org: HTTP redirects make url-retrieve-synchronously asynchronous] Date: Tue, 17 Jan 2006 14:59:54 -0500 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1137534140 10791 80.91.229.2 (17 Jan 2006 21:42:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Jan 2006 21:42:20 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 17 22:42:16 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eyyab-0000X0-Dn for ged-emacs-devel@m.gmane.org; Tue, 17 Jan 2006 22:42:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eyycp-0007KN-GJ for ged-emacs-devel@m.gmane.org; Tue, 17 Jan 2006 16:44:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Eyx56-0001Jn-01 for emacs-devel@gnu.org; Tue, 17 Jan 2006 15:05:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Eyx53-0001IX-NI for emacs-devel@gnu.org; Tue, 17 Jan 2006 15:05:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eyx53-0001IL-Dg for emacs-devel@gnu.org; Tue, 17 Jan 2006 15:05:25 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Eyx8l-0005RR-Ec for emacs-devel@gnu.org; Tue, 17 Jan 2006 15:09:16 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Eywzi-0005Ni-M0; Tue, 17 Jan 2006 14:59:54 -0500 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49217 Archived-At: [I sent this message a week ago but did not get a response.] Would someone please look at this, and then ack? ------- Start of forwarded message ------- X-Injected-Via-Gmane: http://gmane.org/ To: emacs-pretest-bug@gnu.org From: Mark Plaksin Date: Mon, 09 Jan 2006 13:18:46 -0500 X-Gmane-NNTP-Posting-Host: stone.tss.usg.edu Cancel-Lock: sha1:UaHMftiRGaDChvZKQsoPebVNGFs= Subject: HTTP redirects make url-retrieve-synchronously asynchronous Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on monty-python X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=HTML_MESSAGE autolearn=no version=2.63 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 encountered the problem in Gnus using nnrss. I have an old URL for Slashdot's RSS feed and was experimenting with setting mm-url-use-external to nil. To reproduce, evaluate this in *scratch*: (mm-url-insert "http://slashdot.org/index.rss") You'll get this: ("http://slashdot.org/index.rss" 316) 301 Moved Permanently

Moved Permanently

The document has moved here.


Apache/1.3.33 Server at slashdot.org Port 80
To make the problem go away, add a breakpoint before "(when redirect-uri" in url-http.el. Then re-run the test and wait a few seconds after hitting the breakpoint. Tell the debugger to continue and you will get the expected contents of Slashdot's RSS feed instead of the redirect message above. I'll keep trying to find a way to fix this but maybe it's trivial for somebody who already understands the URL library. _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug ------- End of forwarded message -------