From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Fwd: url.el bug Date: Thu, 06 Mar 2008 09:33:25 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1204816606 3542 80.91.229.12 (6 Mar 2008 15:16:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2008 15:16:46 +0000 (UTC) Cc: Damon Permezel To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 06 16:17:10 2008 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 1JXHpe-0006F4-Ut for ged-emacs-devel@m.gmane.org; Thu, 06 Mar 2008 16:16:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXHp7-0000t3-BP for ged-emacs-devel@m.gmane.org; Thu, 06 Mar 2008 10:15:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXBWn-000613-Bt for emacs-devel@gnu.org; Thu, 06 Mar 2008 03:32:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXBWj-0005xU-Eg for emacs-devel@gnu.org; Thu, 06 Mar 2008 03:32:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXBWj-0005xD-6r for emacs-devel@gnu.org; Thu, 06 Mar 2008 03:32:33 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JXBWi-0006HL-6n for emacs-devel@gnu.org; Thu, 06 Mar 2008 03:32:32 -0500 Original-Received: from mailrelay1.alcatel.de ([194.113.59.95]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JXBWe-0007VE-1L for emacs-devel@gnu.org; Thu, 06 Mar 2008 03:32:28 -0500 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay1.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id m268WMUl010147; Thu, 6 Mar 2008 09:32:22 +0100 User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.57 on 149.204.45.72 X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Thu, 06 Mar 2008 10:15:52 -0500 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:91491 Archived-At: --=-=-= Hi, could somebody, please, take over? I'm not so familiar with url-http.el. Best regards, Michael. --=-=-= Content-Type: message/rfc822 Content-Disposition: inline X-From-Line: imap Thu Mar 6 08:02:16 2008 Received: from mailrelay2.alcatel.de (destgs0008n.stgl.netd.alcatel.de [149.204.45.73]) by destgsu0048.stgl.sel.alcatel.de (8.12.3/8.12.3) with ESMTP id m266WA2O021378 for ; Thu, 6 Mar 2008 07:32:10 +0100 (MET) Received: from mailgate2.alcatel.de (destgs0008l.stgl.netd.alcatel.de [194.113.59.8]) by mailrelay2.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id m266WAkD026732 for ; Thu, 6 Mar 2008 07:32:10 +0100 Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by mailgate2.alcatel.de (8.13.4/8.13.4/ICT) with SMTP id m266W8jp000589 for ; Thu, 6 Mar 2008 07:32:09 +0100 Received: (qmail 15914 invoked by alias); 6 Mar 2008 06:32:08 -0000 Delivered-To: GMX delivery to michael.albinus@gmx.de Received: (qmail invoked by alias); 06 Mar 2008 06:32:08 -0000 Received: from smtpoutm.mac.com (EHLO smtpoutm.mac.com) [17.148.16.71] by mx0.gmx.net (mx010) with SMTP; 06 Mar 2008 07:32:08 +0100 Received: from mac.com (asmtp003-s [10.150.69.66]) by smtpoutm.mac.com (Xserve/smtpout008/MantshX 4.0) with ESMTP id m266W7k5016289 for ; Wed, 5 Mar 2008 22:32:07 -0800 (PST) Received: from [192.168.1.40] (60-240-83-144.static.tpgi.com.au [60.240.83.144]) (authenticated bits=0) by mac.com (Xserve/asmtp003/MantshX 4.0) with ESMTP id m266W300011583 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 5 Mar 2008 22:32:05 -0800 (PST) Message-Id: From: Damon Permezel To: michael.albinus@gmx.de Subject: url.el bug Date: Thu, 6 Mar 2008 16:32:03 +1000 X-Mailer: Apple Mail (2.919.2) X-GMX-Htest: 0.5600000000000001 X-GMX-Antispam: 0 (Mail was not recognized as spam) X-Resent-By: Forwarder X-Resent-For: michael.albinus@gmx.de X-Resent-To: Michael.Albinus@alcatel-lucent.de X-Scanned-By: MIMEDefang 2.57 on 149.204.45.73 X-Scanned-By: MIMEDefang 2.51 on 194.113.59.8 X-Alcanet-virus-scanned: m266WA2O021378 at destgsu0048.stgl.sel.alcatel.de Lines: 48 Xref: slbhab default:93896 MIME-Version: 1.0 Hi. I was using url.el to download some stuff from the emacs wiki. All the files came over with a trailing, final ^M appended at the and of the file. Not on every line, just at the EOF. Tacked it down to a transfer-encoding: chunked issue. Must be an off- by-one. Turned on HTTP/1.0 only mode, and works a treat. Used command line 'curl' to fetch, and I actually can't remember if it did chunked, but if worked. Ok, that is not very useful. I verified the on-the-wire bytes that the trailing CR was not part of the data, but did assume that the initial byte count was correct. Ok, also not very useful. Here is the final few bytes from wireshark: 00039814 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 3b 0a 3b ;;;;;;;; ;;;;;;.; 00039824 3b 3b 20 69 63 69 63 6c 65 73 2d 64 6f 63 31 2e ;; icicl es- doc1. 00039834 65 6c 20 65 6e 64 73 20 68 65 72 65 0a 0d 0a 30 el ends here...0 00039844 0d 0a 0d 0a .... We see 'ends here\n\r\n0\r\n\r\n' The '0\r\n\r\n' is because of the HTTP Transfer-Encoding: chunked. This indicates that the next chunk has size of 0, which is per the spec. chunk = chunk-size [ chunk-extension ] CRLF chunk-data CRLF so the 'here\n' is the (end of the) chunk-data and the '\r\n' is the CRLF then. Looks like I have version 1.57. MD5 (url-http.el) = ba5a2f747e0236f5207c89bb180c9d12 MD5 (/Applications/Emacs.app/Contents/Resources/lisp/url/url-http.el) = ba5a2f747e0236f5207c89bb180c9d12 =dap --=-=-=--