From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#22744: 24.5; url-retrieve callback is not invoked when http response content is empty Date: Sun, 21 Feb 2016 13:57:52 +1100 Message-ID: <87h9h2hirz.fsf@gnus.org> References: <871t87de23.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456023563 11019 80.91.229.3 (21 Feb 2016 02:59:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Feb 2016 02:59:23 +0000 (UTC) Cc: 22744@debbugs.gnu.org To: Shiyao Ma Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 21 03:59:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aXKEn-0000FN-Ul for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Feb 2016 03:59:10 +0100 Original-Received: from localhost ([::1]:37420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXKEn-0001hc-Ad for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Feb 2016 21:59:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXKEj-0001hR-Hs for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 21:59:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXKEg-0007Js-B7 for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 21:59:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXKEg-0007Jo-7L for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 21:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXKEg-0001ff-1t for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 21:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Feb 2016 02:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22744 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22744-submit@debbugs.gnu.org id=B22744.14560235036375 (code B ref 22744); Sun, 21 Feb 2016 02:59:02 +0000 Original-Received: (at 22744) by debbugs.gnu.org; 21 Feb 2016 02:58:23 +0000 Original-Received: from localhost ([127.0.0.1]:35702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXKE3-0001el-2D for submit@debbugs.gnu.org; Sat, 20 Feb 2016 21:58:23 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:47580) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXKE0-0001ea-90 for 22744@debbugs.gnu.org; Sat, 20 Feb 2016 21:58:20 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aXKDc-0005Qq-Dd; Sun, 21 Feb 2016 03:57:57 +0100 In-Reply-To: (Shiyao Ma's message of "Sat, 20 Feb 2016 19:15:27 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aXKDc-0005Qq-Dd MailScanner-NULL-Check: 1456628277.18133@Q2Xr9m/1TMEWoK4q5xL7jg X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113389 Archived-At: Shiyao Ma writes: > A sample post response: > https://bpaste.net/show/25777c5fde69 > No response content, the result is merely the http headers. So you do a POST, and then you get a 302 redirect (which results in a GET)? I think I remember somebody working on this issue a few weeks ago... Oh, yeah: commit 46dfdd831b817ef9e281350043bd4231f2dc5acc Author: Nicolas Petton Date: Thu Feb 4 21:43:42 2016 +0100 Do not ignore redirections of 301, 302 and 307 status codes The current version of HTTP/1.1 (RFC 7231) no longer requires confirmation on 301, 302 or 307 status codes, therefore we do not have to ignore redirects for other requests than GET and HEAD. * lisp/url/url-http.el (url-http-parse-headers): Do not ignore 301, 302 and 307 redirects for other requests than GET and HEAD. So this probably works in emacs-25 now. Could you download (from git) and test? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no