From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 20 01:57:55 2016 Received: (at submit) by debbugs.gnu.org; 20 Feb 2016 06:57:55 +0000 Received: from localhost ([127.0.0.1]:34475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aX1UJ-0008D8-52 for submit@debbugs.gnu.org; Sat, 20 Feb 2016 01:57:55 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33906) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aWznW-0005Xl-O8 for submit@debbugs.gnu.org; Sat, 20 Feb 2016 00:09:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWznP-0000s5-Vl for submit@debbugs.gnu.org; Sat, 20 Feb 2016 00:09:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWznP-0000s1-SJ for submit@debbugs.gnu.org; Sat, 20 Feb 2016 00:09:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWznO-0000Im-2D for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 00:09:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWznL-0000rY-QS for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 00:09:29 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:33717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWznK-0000rB-DO for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 00:09:27 -0500 Received: by mail-wm0-x236.google.com with SMTP id g62so93323981wme.0 for ; Fri, 19 Feb 2016 21:09:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=introo-me.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to:content-type; bh=7PT23IBMO8sxRUUA8wsuXf6BuhC3qnx9ZB8nuW0OI1M=; b=Ghy6ZL/Xkeq8mR+KhRBq/L0XpxNBFZ27ehpsMInhmiAZL3zQVk/35GdEle7dLp8HFj uYlPrmlp8aovPfTEo4g1QAJWoYVj1c/pRQihdV0CUapd6arYqAxwxQlGt/26LcuRUDId NG53fCBPLdLszSD9SBtuzxngiTXQoPWmht1zy8CRJxEcW7qGK2KHQsrXRbbULchFBvFR AJBH9wGVFNFd8ZLQF+fBhQpmVvQVYAVQR4kze9i79GyDHQ66bqwTDt0Qa8XguZEo9FvW pnOFzN8cAGi3+Fwt9GuR+7xZ2vD+lejJ9V7pRST5vD20NnquY+cDlqyykakz3yJsvwuO 5L2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=7PT23IBMO8sxRUUA8wsuXf6BuhC3qnx9ZB8nuW0OI1M=; b=eMiFXmVTtqKmnkTGvzxb/vglkXPx0DsV6Z6+Ek/0790FMQGKE95ayECF9la2fDaHEJ eq/uDQ1jQHDopySz6gSlZUcEtBqxZeJcMQjv/dBH4YUXl+CdRna97d0TQG/TsGb+wJ4C PcVWKWhrQQuwF3QTu7sjjaxF93zueAinG1u/1SzJYzk4b8m0nMNs9c4L3eOUo4YPswya BTMJXFUoEMshcwH+n7omm/Y9SSattZXIMY8A3T7OohEPETXsQbdfUcdQkXcn3K++l6KO V2lot6jYxi+tu+MlCDocOSfiNaDeURMQRsTALXvpMldC7xTLyKwNisiKlJ8jj6v3DPww /GVA== X-Gm-Message-State: AG10YORjdBiArfyn3Nq+VDeRphM/tlO5ZdmhiI8yGSGBi8dS+lyGxLUgPNttnfKzzSqJk+YHg91TyQ8sqcMHLg== MIME-Version: 1.0 X-Received: by 10.194.95.40 with SMTP id dh8mr18785584wjb.146.1455944965650; Fri, 19 Feb 2016 21:09:25 -0800 (PST) Received: by 10.27.231.69 with HTTP; Fri, 19 Feb 2016 21:09:25 -0800 (PST) X-Originating-IP: [143.89.244.107] Date: Sat, 20 Feb 2016 13:09:25 +0800 Message-ID: Subject: 24.5; url-retrieve callback is not invoked when http response content is empty From: Shiyao Ma To: bug-gnu-emacs@gnu.org, wmperry@gnu.org Content-Type: multipart/alternative; boundary=047d7bea350e7d94eb052c2c9aab X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 20 Feb 2016 01:57:53 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --047d7bea350e7d94eb052c2c9aab Content-Type: text/plain; charset=UTF-8 A working snippet is here: https://bpaste.net/show/d2bd28c10f46 The callback paste-callback-bpaste is not invoked. Turning on `url-debug', we can observe that the post response is a mere http header with status 302, and no *data content*. Regards. ************************** In GNU Emacs 24.5.1 (x86_64-apple-darwin14.4.0, NS apple-appkit-1348.17) of 2015-08-11 on Mango Configured using: `configure --prefix=/usr/local/Cellar/emacs/24.5 --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/24.5/share/info/emacs --without-dbus --without-gnutls --with-ns --disable-ns-self-contained' Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: elisp-slime-nav-mode: t eldoc-mode: t which-key-mode: t async-bytecomp-package-mode: t evil-jumper-mode: t evil-leader-mode: t evil-mode: t global-undo-tree-mode: t undo-tree-mode: t evil-local-mode: t override-global-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: ad-handle-definition: `evil-mode' got redefined Source file `/Users/Eddie/.emacs.d/lisp/bundle/dpaste_de-20131015.525/dpaste_de.el' newer than byte-compiled file ad-handle-definition: `find-tag-noselect' got redefined Loading term/xterm...done 6am is refreshing Load-path shadows: /Users/Eddie/.emacs.d/lisp/bundle/helm-20160121.2157/helm-multi-match hides /Users/Eddie/.emacs.d/lisp/bundle/helm-core-20160121.2157/helm-multi-match Features: (shadow sort my-gnus mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils xterm elisp-slime-nav help-mode etags eldoc my-conf my-lisp my-org finder-inf which-key my-paste paste url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap dpaste_de web s ucs-normalize rx time-stamp dash browse-url json url-parse auth-source gnus-util time-date mm-util mail-prsvr password-cache url-vars my-tmux emux my-helm helm helm-source helm-multi-match helm-lib dired helm-config helm-easymenu cl-macs gv async-bytecomp async my-evil evil-jumper evil-leader evil evil-integration undo-tree diff evil-maps evil-commands evil-command-window evil-types evil-search evil-ex evil-macros evil-repeat evil-states evil-core advice help-fns evil-common windmove thingatpt rect evil-digraphs evil-vars ring my-utils my-graphics use-package diminish bind-key easy-mmode info easymenu eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core package epg-config edmacro kmacro cl-loaddefs cl-lib tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 314308 152941) (symbols 48 29606 97) (miscs 40 32 184) (strings 32 47915 121314) (string-bytes 1 1321209) (vectors 16 42457) (vector-slots 8 705376 93653) (floats 8 109 567) (intervals 56 217 74) (buffers 960 12)) --047d7bea350e7d94eb052c2c9aab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
A working snippet is here:

https://bpaste.net/show/d2bd28c10f46
<= br>The callback paste-callback-bpaste is not invoked.

Turning on `ur= l-debug', we can observe that the post response is a mere
http heade= r with status 302, and no *data content*.


Regards.


**************************



In GNU Emacs 24.5.1 = (x86_64-apple-darwin14.4.0, NS apple-appkit-1348.17)
=C2=A0of 2015-08-11= on Mango
Configured using:
=C2=A0`configure --prefix=3D/usr/local/Ce= llar/emacs/24.5
=C2=A0--enable-locallisppath=3D/usr/local/share/emacs/si= te-lisp
=C2=A0--infodir=3D/usr/local/Cellar/emacs/24.5/share/info/emacs = --without-dbus
=C2=A0--without-gnutls --with-ns --disable-ns-self-contai= ned'

Important settings:
=C2=A0 value of $LC_ALL: en_US.UTF-8=
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-= 8-unix

Major mode: Lisp Interaction

Minor modes in effect:=C2=A0 elisp-slime-nav-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 which-key= -mode: t
=C2=A0 async-bytecomp-package-mode: t
=C2=A0 evil-jumper-mod= e: t
=C2=A0 evil-leader-mode: t
=C2=A0 evil-mode: t
=C2=A0 global-= undo-tree-mode: t
=C2=A0 undo-tree-mode: t
=C2=A0 evil-local-mode: t<= br>=C2=A0 override-global-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 elect= ric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t=
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
= =C2=A0 font-lock-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-= encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number= -mode: t
=C2=A0 transient-mark-mode: t

Recent messages:
ad-han= dle-definition: `evil-mode' got redefined
Source file `/Users/Eddie/= .emacs.d/lisp/bundle/dpaste_de-20131015.525/dpaste_de.el' newer than by= te-compiled file
ad-handle-definition: `find-tag-noselect' got redef= ined
Loading term/xterm...done
6am is refreshing

Load-path sha= dows:
/Users/Eddie/.emacs.d/lisp/bundle/helm-20160121.2157/helm-multi-ma= tch hides /Users/Eddie/.emacs.d/lisp/bundle/helm-core-20160121.2157/helm-mu= lti-match

Features:
(shadow sort my-gnus mail-extr emacsbug messa= ge format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-par= se rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf= -drums mail-utils
xterm elisp-slime-nav help-mode etags eldoc my-conf my= -lisp my-org
finder-inf which-key my-paste paste url url-proxy url-priva= cy url-expand
url-methods url-history url-cookie url-domsuf url-util mai= lcap dpaste_de
web s ucs-normalize rx time-stamp dash browse-url json ur= l-parse
auth-source gnus-util time-date mm-util mail-prsvr password-cach= e
url-vars my-tmux emux my-helm helm helm-source helm-multi-match helm-l= ib
dired helm-config helm-easymenu cl-macs gv async-bytecomp async my-ev= il
evil-jumper evil-leader evil evil-integration undo-tree diff evil-map= s
evil-commands evil-command-window evil-types evil-search evil-ex
ev= il-macros evil-repeat evil-states evil-core advice help-fns
evil-common = windmove thingatpt rect evil-digraphs evil-vars ring
my-utils my-graphic= s use-package diminish bind-key easy-mmode info
easymenu eieio byte-opt = bytecomp byte-compile cl-extra cconv eieio-core
package epg-config edmac= ro kmacro cl-loaddefs cl-lib tooltip electric
uniquify ediff-hook vc-hoo= ks lisp-float-type mwheel ns-win tool-bar dnd
fontset image regexp-opt f= ringe tabulated-list newcomment lisp-mode
prog-mode register page menu-b= ar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax f= acemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese ti= betan thai tai-viet lao korean
japanese hebrew greek romanian slovak cze= ch european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmp= r-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-f= ace macroexp files
text-properties overlay sha1 md5 base64 format env co= de-pages mule
custom widget hashtable-print-readable backquote make-netw= ork-process
cocoa ns multi-tty emacs)

Memory information:
((co= nses 16 314308 152941)
=C2=A0(symbols 48 29606 97)
=C2=A0(miscs 40 32= 184)
=C2=A0(strings 32 47915 121314)
=C2=A0(string-bytes 1 1321209)<= br>=C2=A0(vectors 16 42457)
=C2=A0(vector-slots 8 705376 93653)
=C2= =A0(floats 8 109 567)
=C2=A0(intervals 56 217 74)
=C2=A0(buffers 960 = 12))

--047d7bea350e7d94eb052c2c9aab-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 20 02:41:42 2016 Received: (at 22744) by debbugs.gnu.org; 20 Feb 2016 07:41:43 +0000 Received: from localhost ([127.0.0.1]:34500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aX2Ag-000186-MU for submit@debbugs.gnu.org; Sat, 20 Feb 2016 02:41:42 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:56904) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aX2Ae-00017y-NZ for 22744@debbugs.gnu.org; Sat, 20 Feb 2016 02:41:41 -0500 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 1aX2AD-0000Va-9H; Sat, 20 Feb 2016 08:41:13 +0100 From: Lars Ingebrigtsen To: Shiyao Ma Subject: Re: bug#22744: 24.5; url-retrieve callback is not invoked when http response content is empty References: Date: Sat, 20 Feb 2016 18:41:08 +1100 In-Reply-To: (Shiyao Ma's message of "Sat, 20 Feb 2016 13:09:25 +0800") Message-ID: <871t87de23.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1aX2AD-0000Va-9H X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1456558875.83095@ESrsYzZjbZGBZQR/RR1/SQ X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22744 Cc: 22744@debbugs.gnu.org, wmperry@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Shiyao Ma writes: > A working snippet is here: > > https://bpaste.net/show/d2bd28c10f46 > > The callback paste-callback-bpaste is not invoked. > > Turning on `url-debug', we can observe that the post response is a mere > http header with status 302, and no *data content*. A 302 is a redirection, and URL follows redirections, and do not call the callback before we get to the "real" page (or it fails). Is there nothing else returned from the server? Like a Location header? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 20 13:24:29 2016 Received: (at 22744) by debbugs.gnu.org; 20 Feb 2016 18:24:29 +0000 Received: from localhost ([127.0.0.1]:35564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXCCi-0004Vu-Ha for submit@debbugs.gnu.org; Sat, 20 Feb 2016 13:24:28 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:35855) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aX5Vc-0000yi-Jj for 22744@debbugs.gnu.org; Sat, 20 Feb 2016 06:15:33 -0500 Received: by mail-wm0-f50.google.com with SMTP id g62so110346271wme.1 for <22744@debbugs.gnu.org>; Sat, 20 Feb 2016 03:15:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=introo-me.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=CKSd9YnU0jsSCHv1Kn+LN52q963R/sLXcDW41oelRnU=; b=TOkQhLWV2kkBUdARBQzesdAuWZt18fZCkMpa8oGRdttR1F/66JeDWREtCbPZfyMpUI 6LHR/E9/E1Bswhuilo/Jp1kQ+1PmmfNw4S0SF67DCNJ3Jsnd9tKiJU7BdVcZvHTXSzme i5an9vc/9SlWLoSauQgbTfeZhhL5XwZrqLTWa7KXt421BpbvgK0VcPDjzkMPZ0sCIC23 86zgDtcELwPATK7/H/MX+HTy1Qxl/DkxIcxDPcFOq03ynsYQja+E6fxycYU48NQSccy0 B1jN/EOoubd7tel8MLjF1LnL4ZGqn48Pz1AwcOZ4NKkaiFV9/UEandNZ3tdHg8/N+/+Y tn9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=CKSd9YnU0jsSCHv1Kn+LN52q963R/sLXcDW41oelRnU=; b=egKwpsgyp81odMQbGg/AOvXj1xNjOQJ8OFRqyC4XHt+E+UmxkSG0/T1n4CSeBkYrnW 0+cCTusGc3C0qcFBwDCON6JKd+jr9FPst0y869UR/TWFKTj+MeoO8K9pyywN9OO5QUWl DwS90gStF77yu+vqpeRkRCHOwVuHjjKjk1+QZ1cJyzhdty17QAUX52YYfrE/py2zDwvZ cmm5wL1ovhzY7GX+3RAjKDGDmHMS1P/JtiX+mqnw0WjbHgJ1POhnlLMkczeH9t+AfdJS wAuAGs6Pgi2TWUlKAII6TLjsskJ8BeIYXL8p3uSKL5USjHtcYw/payhroINYVp4alpQ8 uJyw== X-Gm-Message-State: AG10YOTWc7O3POFI53/i1hrcDlvBa76EZ/vsymGRe1IsDmug2VFMkyH54E3lbPqT7Q9zyAW1hzMj2eJumuDAVw== MIME-Version: 1.0 X-Received: by 10.28.51.74 with SMTP id z71mr2023094wmz.15.1455966927109; Sat, 20 Feb 2016 03:15:27 -0800 (PST) Received: by 10.27.231.69 with HTTP; Sat, 20 Feb 2016 03:15:27 -0800 (PST) X-Originating-IP: [143.89.244.107] In-Reply-To: <871t87de23.fsf@gnus.org> References: <871t87de23.fsf@gnus.org> Date: Sat, 20 Feb 2016 19:15:27 +0800 Message-ID: Subject: Re: bug#22744: 24.5; url-retrieve callback is not invoked when http response content is empty From: Shiyao Ma To: Lars Ingebrigtsen Content-Type: multipart/alternative; boundary=001a114451d07edd04052c31b797 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22744 X-Mailman-Approved-At: Sat, 20 Feb 2016 13:24:26 -0500 Cc: 22744@debbugs.gnu.org, wmperry@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a114451d07edd04052c31b797 Content-Type: text/plain; charset=UTF-8 To add more detail, The url-debug output: https://bpaste.net/show/2945ab6727be A sample post response: https://bpaste.net/show/25777c5fde69 No response content, the result is merely the http headers. Also, url-retrieve doesn't follow the 302 redirection. --001a114451d07edd04052c31b797 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
To add more detail,

The u= rl-debug output:
https:= //bpaste.net/show/2945ab6727be


A sample post response:=
https://bpaste.net/sho= w/25777c5fde69
No response content, the result is merely the h= ttp headers.


Also, url-retrieve doesn't follow the 302= redirection.
--001a114451d07edd04052c31b797-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 20 21:58:23 2016 Received: (at 22744) by debbugs.gnu.org; 21 Feb 2016 02:58:23 +0000 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 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 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 From: Lars Ingebrigtsen To: Shiyao Ma Subject: Re: bug#22744: 24.5; url-retrieve callback is not invoked when http response content is empty References: <871t87de23.fsf@gnus.org> Date: Sun, 21 Feb 2016 13:57:52 +1100 In-Reply-To: (Shiyao Ma's message of "Sat, 20 Feb 2016 19:15:27 +0800") Message-ID: <87h9h2hirz.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1aXKDc-0005Qq-Dd X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1456628277.18133@Q2Xr9m/1TMEWoK4q5xL7jg X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22744 Cc: 22744@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 21 13:38:13 2016 Received: (at 22744) by debbugs.gnu.org; 21 Feb 2016 18:38:13 +0000 Received: from localhost ([127.0.0.1]:36558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXYtZ-0002Ij-BS for submit@debbugs.gnu.org; Sun, 21 Feb 2016 13:38:13 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:37526) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aXRby-0006D0-4s for 22744@debbugs.gnu.org; Sun, 21 Feb 2016 05:51:34 -0500 Received: by mail-wm0-f46.google.com with SMTP id g62so126741135wme.0 for <22744@debbugs.gnu.org>; Sun, 21 Feb 2016 02:51:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=introo-me.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Zfj02iO5TuZJVSbSGTwxDWYPqon3VV3WAARwzGh3Pdk=; b=tssgqJGd/kK3T2smiXgDMQ24k0mCKrAZqjaw0DLVKwtky3PI5uro2Km5q4kY8Xr/Ch Mv16cPQ+mys/zROKtjE6K5rUFPl7QCnDDmt16cYplblLDioLggfUTLS0SL66OggK8k5H /i+VF0DSmsmy1c7GUKtPdevem6nkSjY7vevFWK5QwvbqUCQYNKNDYAWm5xoyZBurCIhb /wv9uMC/nD/mcQDIZXbj08iNA0Rcci8ejQjoATxQfUEyM37a40tcCN+q2fGh0zg+8QQL ZCo8CJURICISHQCTW5iDiDiqSZ0Mz7WYNUXyZO3LdAQU1mdwoilWFRBbTjshWhpPN82b s1Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Zfj02iO5TuZJVSbSGTwxDWYPqon3VV3WAARwzGh3Pdk=; b=k1QzeGeYR6ryeGgEAirISc6YhZTUrJWlbBCCZlXd/TTeAURDFuq5eLYC3dBq/nK6Xy AQSwlox9BIjTetqL3MwewcNTFS9ZQjjVjuIuitOkHy0tQWsfM8+fpxJXKzIMcI7Re1Zb 5Sg5OMJpMPb4+mzA4nmrVR5aB8q3Yko1EYYTyeDqXeiZku7NxFwfErkvcqzsgiaWemWZ +zC9fEpDIdKdaRYIxEJfD50VVRS6+cbPhI7cPTpunRgtiCN07pEgZLjGg83vRmLncfBe +iuPLRK7C9QkrE9Mo3iglMkWMEaX0vQzjA4l3Ip5UU6RBFnYaVI49qCojMfzJpo4ZWBo SjuA== X-Gm-Message-State: AG10YOSVPr5PZNrbHTviSc9eANQBqnKAwoC1iKkwMT+DdnJP9cu8MeTtWogPFQENBlkWiopBT7P8pMRp88osFg== MIME-Version: 1.0 X-Received: by 10.194.78.175 with SMTP id c15mr22627018wjx.16.1456051888267; Sun, 21 Feb 2016 02:51:28 -0800 (PST) Received: by 10.27.231.69 with HTTP; Sun, 21 Feb 2016 02:51:28 -0800 (PST) X-Originating-IP: [143.89.244.107] In-Reply-To: <87h9h2hirz.fsf@gnus.org> References: <871t87de23.fsf@gnus.org> <87h9h2hirz.fsf@gnus.org> Date: Sun, 21 Feb 2016 18:51:28 +0800 Message-ID: Subject: Re: bug#22744: 24.5; url-retrieve callback is not invoked when http response content is empty From: Shiyao Ma To: Lars Ingebrigtsen Content-Type: multipart/alternative; boundary=047d7bfcf874935c7b052c457fad X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22744 X-Mailman-Approved-At: Sun, 21 Feb 2016 13:38:12 -0500 Cc: 22744@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --047d7bfcf874935c7b052c457fad Content-Type: text/plain; charset=UTF-8 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 Date: Sun, 21 Feb 2016 10:45:21 GMT Content-Type: text/html Content-Length: 178 Connection: keep-alive Allow: HEAD, OPTIONS, GET X-Cache-Hits: 0 X-Cache-Age: 0 X-Cache-Status: MISS 405 Method Not Allowed

Method Not Allowed

The method is not allowed for the requested URL.

For the url-debug output, it's: https://bpaste.net/show/f5b3e99df8fd ***** 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. BTW, possible to do nothing other than firing up the callback when receiving the HTTP 302 on Line#32 ? Regards. --047d7bfcf874935c7b052c457fad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I installed from the git hea= d.


For the callback status, it's:
(:error (error ht= tp 405) :redirect https://= bpaste.net/show/9f7b83e91ebc)


For the callback buffer,= it's:
HTTP/1.1 405 METHOD NOT ALLOWED
Server: nginx
Date: Sun= , 21 Feb 2016 10:45:21 GMT
Content-Type: text/html
Content-Length: 17= 8
Connection: keep-alive
Allow: HEAD, OPTIONS, GET
X-Cache-Hits: 0=
X-Cache-Age: 0
X-Cache-Status: MISS

<!DOCTYPE HTML PUBLIC = "-//W3C//DTD HTML 3.2 Final//EN">
<title>405 Method N= ot Allowed</title>
<h1>Method Not Allowed</h1>
<= p>The method is not allowed for the requested URL.</p>


=
For the url-debug output, it's:
https://bpaste.net/show/f5b3e99df8fd


=

*****

So from the url-debug output, the logic is doing= wrong. On Line#30, it's doing a *redirect* with post, resulting an HTT= P 405.



BTW, possible to do nothing other than firing u= p the callback when receiving the HTTP 302=C2=A0 on Line#32 ?


Regards.
--047d7bfcf874935c7b052c457fad-- From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 21 22:03:33 2016 Received: (at 22744) by debbugs.gnu.org; 22 Feb 2016 03:03:33 +0000 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 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 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 From: Lars Ingebrigtsen To: Shiyao Ma Subject: Re: bug#22744: 24.5; url-retrieve callback is not invoked when http response content is empty References: <871t87de23.fsf@gnus.org> <87h9h2hirz.fsf@gnus.org> Date: Mon, 22 Feb 2016 14:03:00 +1100 In-Reply-To: (Shiyao Ma's message of "Sun, 21 Feb 2016 18:51:28 +0800") Message-ID: <87bn79zbtn.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1aXgm9-00008T-4j X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1456714987.96618@tW4y8DzuN2/i6Opk+11BOA X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22744 Cc: Nicolas Petton , 22744@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 24 04:14:12 2019 Received: (at 22744) by debbugs.gnu.org; 24 Sep 2019 08:14:12 +0000 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 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 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 From: Lars Ingebrigtsen To: Shiyao Ma Subject: Re: bug#22744: 24.5; url-retrieve callback is not invoked when http response content is empty References: <871t87de23.fsf@gnus.org> <87h9h2hirz.fsf@gnus.org> <87bn79zbtn.fsf@gnus.org> Date: Tue, 24 Sep 2019 10:14:04 +0200 In-Reply-To: <87bn79zbtn.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 22 Feb 2016 14:03:00 +1100") Message-ID: <87tv921583.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22744 Cc: Nicolas Petton , 22744@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 24 04:14:20 2019 Received: (at control) by debbugs.gnu.org; 24 Sep 2019 08:14:20 +0000 Received: from localhost ([127.0.0.1]:37608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCfxk-0008G7-Im for submit@debbugs.gnu.org; Tue, 24 Sep 2019 04:14:20 -0400 Received: from quimby.gnus.org ([80.91.231.51]:58726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCfxi-0008Fz-Pi for control@debbugs.gnu.org; Tue, 24 Sep 2019 04:14:19 -0400 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 1iCfxg-0003Ol-4O for control@debbugs.gnu.org; Tue, 24 Sep 2019 10:14:18 +0200 Date: Tue, 24 Sep 2019 10:14:15 +0200 Message-Id: <87sgom157s.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #22744 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 22744 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 22744 quit From unknown Fri Jun 13 10:29:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 22 Oct 2019 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator