From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.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: Tue, 24 Sep 2019 10:14:04 +0200 Message-ID: <87tv921583.fsf@gnus.org> References: <871t87de23.fsf@gnus.org> <87h9h2hirz.fsf@gnus.org> <87bn79zbtn.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="83113"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) 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 Tue Sep 24 10:15:22 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCfyj-000LTv-I1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Sep 2019 10:15:21 +0200 Original-Received: from localhost ([::1]:42416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCfyi-0006rd-68 for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Sep 2019 04:15:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45824) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCfyT-0006qd-8B for bug-gnu-emacs@gnu.org; Tue, 24 Sep 2019 04:15:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCfyR-0003UN-Re for bug-gnu-emacs@gnu.org; Tue, 24 Sep 2019 04:15:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57020) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iCfyQ-0003TB-RA for bug-gnu-emacs@gnu.org; Tue, 24 Sep 2019 04:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iCfyQ-0008HJ-JU for bug-gnu-emacs@gnu.org; Tue, 24 Sep 2019 04:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Sep 2019 08:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22744 X-GNU-PR-Package: emacs Original-Received: via spool by 22744-submit@debbugs.gnu.org id=B22744.156931285231732 (code B ref 22744); Tue, 24 Sep 2019 08:15:02 +0000 Original-Received: (at 22744) by debbugs.gnu.org; 24 Sep 2019 08:14:12 +0000 Original-Received: from localhost ([127.0.0.1]:37605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCfxc-0008Fj-7v for submit@debbugs.gnu.org; Tue, 24 Sep 2019 04:14:12 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:58710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCfxa-0008Fb-IW for 22744@debbugs.gnu.org; Tue, 24 Sep 2019 04:14:10 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCfxU-0003Oc-Lw; Tue, 24 Sep 2019 10:14:08 +0200 In-Reply-To: <87bn79zbtn.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 22 Feb 2016 14:03:00 +1100") 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: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:167084 Archived-At: Lars Ingebrigtsen writes: >> 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... This was apparently fixed in 2018 like this: ('found ; 302 ;; 302 Found was ambiguously defined in the standards, but ;; it's now recommended that it's treated like 303 instead ;; of 307, since that's what most servers expect. (setq url-http-method "GET" url-http-data nil)) To I think it's fixed, and I'm closing this bug report. If you're seeing a problem here, please reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no