From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Diane Murray Newsgroups: gmane.emacs.devel Subject: Re: URL not following some 302 redirects after recent changes Date: Wed, 31 Jan 2007 14:44:44 +0100 Message-ID: <87tzy7wbsj.fsf@x3y2z1.net> References: <871wnw2opm.fsf@x3y2z1.net> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1170251026 9526 80.91.229.12 (31 Jan 2007 13:43:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Jan 2007 13:43:46 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 31 14:43:33 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HCFkK-0005zt-Kh for ged-emacs-devel@m.gmane.org; Wed, 31 Jan 2007 14:43:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HCFkK-0002uH-8W for ged-emacs-devel@m.gmane.org; Wed, 31 Jan 2007 08:43:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HCFk7-0002qJ-De for emacs-devel@gnu.org; Wed, 31 Jan 2007 08:43:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HCFk3-0002mO-S6 for emacs-devel@gnu.org; Wed, 31 Jan 2007 08:43:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HCFk3-0002m4-Lz for emacs-devel@gnu.org; Wed, 31 Jan 2007 08:43:15 -0500 Original-Received: from mailout01.sul.t-online.com ([194.25.134.80]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HCFk3-00070l-AP for emacs-devel@gnu.org; Wed, 31 Jan 2007 08:43:15 -0500 Original-Received: from fwd28.aul.t-online.de by mailout01.sul.t-online.com with smtp id 1HCFjp-0006y0-02; Wed, 31 Jan 2007 14:43:01 +0100 Original-Received: from spargel (GiG6wiZ1wekFgp-YRP1MoH1m0DYf6Qb0LVAp5O7pa6MxI+sgeJZac9@[84.189.239.248]) by fwd28.sul.t-online.de with esmtp id 1HCFjY-0F5DKi0; Wed, 31 Jan 2007 14:42:44 +0100 In-reply-to: <871wnw2opm.fsf@x3y2z1.net> (disumu@x3y2z1.net) X-ID: GiG6wiZ1wekFgp-YRP1MoH1m0DYf6Qb0LVAp5O7pa6MxI+sgeJZac9@t-dialin.net X-TOI-MSGID: 6a1c8180-e59d-4e89-b48a-01ef1774a281 X-detected-kernel: Linux 2.4-2.6 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:65694 Archived-At: On Wed, 22 Nov 2006 03:35:17 +0100 I wrote: > Sometime after 2006-10-26 URL redirects stopped working correctly > (Emacs CVS of 2006-09-19 and 2006-10-26 works, 2006-10-31 and > 2006-11-19 don't work), perhaps due to changes made in revision 1.36 > of url-http.el. It seems that every time the redirects aren't working is when servers using HTTP/1.0 send a "Connection: close" header in their 302 response - 302 responses from servers using HTTP/1.1 work, even when they send "Connection: close". Some sites where URL does not redirect correctly are (as mentioned in my original email), , and . Here's an example with fsf.org. URL requests: GET / HTTP/1.1 MIME-Version: 1.0 Connection: keep-alive Extension: Security/Digest Security/SSL Host: fsf.org The server at fsf.org, using HTTP/1.0, returns the following. The connection status for the process changes from "open" to "connection broken by remote peer ", so `url-http-async-sentinel' activates the callback. HTTP/1.0 302 Moved Temporarily Date: Sat, 27 Jan 2007 17:20:20 GMT Server: Apache/1.3.33 (Debian GNU/Linux) mod_python/2.7.10 Python/2.3.5 PHP/4.4.0-3 mod_ssl/2.8.24 OpenSSL/0.9.7g Location: http://www.fsf.org/ Content-Type: text/html; charset=iso-8859-1 X-Cache: MISS from www.fsf.org X-Cache-Lookup: MISS from www.fsf.org:80 Connection: close ...