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: Mon, 22 Feb 2016 14:03:00 +1100 Message-ID: <87bn79zbtn.fsf@gnus.org> References: <871t87de23.fsf@gnus.org> <87h9h2hirz.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456110263 3386 80.91.229.3 (22 Feb 2016 03:04:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2016 03:04:23 +0000 (UTC) Cc: Nicolas Petton , 22744@debbugs.gnu.org To: Shiyao Ma Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 22 04:04:12 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 1aXgnE-00060T-BZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Feb 2016 04:04:12 +0100 Original-Received: from localhost ([::1]:46370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXgnD-000745-R1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Feb 2016 22:04:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXgn9-0006yj-5q for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 22:04:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXgn4-0004Xg-5k for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 22:04:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXgn4-0004Xa-3a for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 22:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aXgn3-0005hf-TM for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2016 22:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Feb 2016 03:04:01 +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.145611021321888 (code B ref 22744); Mon, 22 Feb 2016 03:04:01 +0000 Original-Received: (at 22744) by debbugs.gnu.org; 22 Feb 2016 03:03:33 +0000 Original-Received: from localhost ([127.0.0.1]:36735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXgmb-0005gy-5k for submit@debbugs.gnu.org; Sun, 21 Feb 2016 22:03:33 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:52871) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXgmZ-0005gp-D9 for 22744@debbugs.gnu.org; Sun, 21 Feb 2016 22:03:31 -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 1aXgm9-00008T-4j; Mon, 22 Feb 2016 04:03:05 +0100 In-Reply-To: (Shiyao Ma's message of "Sun, 21 Feb 2016 18:51:28 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aXgm9-00008T-4j MailScanner-NULL-Check: 1456714987.96618@tW4y8DzuN2/i6Opk+11BOA 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:113440 Archived-At: Shiyao Ma writes: > I installed from the git head. > > For the callback status, it's: > (:error (error http 405) :redirect https://bpaste.net/show/9f7b83e91ebc) > > For the callback buffer, it's: > HTTP/1.1 405 METHOD NOT ALLOWED > Server: nginx [...] > So from the url-debug output, the logic is doing wrong. On Line#30, it's doing > a *redirect* with post, resulting an HTTP 405. So that web site wants the redirect to be done with GET instead of POST? I don't know what the standard says should happen here... Nicolas, could you look into this? The issue is that when POST-ing to bpaste.net, it 302 redirects... > BTW, possible to do nothing other than firing up the callback when receiving > the HTTP 302 on Line#32 ? No, the callbacks are fired after landing on the final URL after all the redirects. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no