GNU bug report logs - #22744
24.5; url-retrieve callback is not invoked when http response content is empty

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Shiyao Ma <i@HIDDEN>; dated Sat, 20 Feb 2016 06:58:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 22744 <at> debbugs.gnu.org:


Received: (at 22744) by debbugs.gnu.org; 20 Feb 2016 07:41:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 20 02:41:42 2016
Received: from localhost ([127.0.0.1]:34500 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aX2Ag-000186-MU
	for submit <at> 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 <larsi@HIDDEN>) id 1aX2Ae-00017y-NZ
 for 22744 <at> 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 <larsi@HIDDEN>)
 id 1aX2AD-0000Va-9H; Sat, 20 Feb 2016 08:41:13 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Shiyao Ma <i@HIDDEN>
Subject: Re: bug#22744: 24.5;
 url-retrieve callback is not invoked when http response content is
 empty
References: <CAJQX3Dx3JipbzBDL3hVsWf08NzAeB_uwL_PagAJV9TF=eUTB6A@HIDDEN>
Date: Sat, 20 Feb 2016 18:41:08 +1100
In-Reply-To: <CAJQX3Dx3JipbzBDL3hVsWf08NzAeB_uwL_PagAJV9TF=eUTB6A@HIDDEN>
 (Shiyao Ma's message of "Sat, 20 Feb 2016 13:09:25 +0800")
Message-ID: <871t87de23.fsf@HIDDEN>
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@HIDDEN
MailScanner-NULL-Check: 1456558875.83095@ESrsYzZjbZGBZQR/RR1/SQ
X-Spam-Status: No
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 22744
Cc: 22744 <at> debbugs.gnu.org, wmperry@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

Shiyao Ma <i@HIDDEN> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22744; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Feb 2016 06:57:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 20 01:57:55 2016
Received: from localhost ([127.0.0.1]:34475 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aX1UJ-0008D8-52
	for submit <at> 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 <i@HIDDEN>) id 1aWznW-0005Xl-O8
 for submit <at> 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 <i@HIDDEN>) id 1aWznP-0000s5-Vl
 for submit <at> 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 <i@HIDDEN>)
 id 1aWznP-0000s1-SJ
 for submit <at> 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 <i@HIDDEN>)
 id 1aWznO-0000Im-2D
 for bug-gnu-emacs@HIDDEN; Sat, 20 Feb 2016 00:09:31 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <i@HIDDEN>) id 1aWznL-0000rY-QS
 for bug-gnu-emacs@HIDDEN; 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 <i@HIDDEN>)
 id 1aWznK-0000rB-DO
 for bug-gnu-emacs@HIDDEN; Sat, 20 Feb 2016 00:09:27 -0500
Received: by mail-wm0-x236.google.com with SMTP id g62so93323981wme.0
 for <bug-gnu-emacs@HIDDEN>; 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: <CAJQX3Dx3JipbzBDL3hVsWf08NzAeB_uwL_PagAJV9TF=eUTB6A@HIDDEN>
Subject: 24.5; url-retrieve callback is not invoked when http response content
 is empty
From: Shiyao Ma <i@HIDDEN>
To: bug-gnu-emacs@HIDDEN, wmperry@HIDDEN
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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

<div dir=3D"ltr"><div>A working snippet is here:<br><br><a href=3D"https://=
bpaste.net/show/d2bd28c10f46">https://bpaste.net/show/d2bd28c10f46</a><br><=
br>The callback paste-callback-bpaste is not invoked.<br><br>Turning on `ur=
l-debug&#39;, we can observe that the post response is a mere<br>http heade=
r with status 302, and no *data content*.<br><br></div><div><br>Regards.<br=
><br><br><br>**************************<br><br><br><br>In GNU Emacs 24.5.1 =
(x86_64-apple-darwin14.4.0, NS apple-appkit-1348.17)<br>=C2=A0of 2015-08-11=
 on Mango<br>Configured using:<br>=C2=A0`configure --prefix=3D/usr/local/Ce=
llar/emacs/24.5<br>=C2=A0--enable-locallisppath=3D/usr/local/share/emacs/si=
te-lisp<br>=C2=A0--infodir=3D/usr/local/Cellar/emacs/24.5/share/info/emacs =
--without-dbus<br>=C2=A0--without-gnutls --with-ns --disable-ns-self-contai=
ned&#39;<br><br>Important settings:<br>=C2=A0 value of $LC_ALL: en_US.UTF-8=
<br>=C2=A0 value of $LANG: en_US.UTF-8<br>=C2=A0 locale-coding-system: utf-=
8-unix<br><br>Major mode: Lisp Interaction<br><br>Minor modes in effect:<br=
>=C2=A0 elisp-slime-nav-mode: t<br>=C2=A0 eldoc-mode: t<br>=C2=A0 which-key=
-mode: t<br>=C2=A0 async-bytecomp-package-mode: t<br>=C2=A0 evil-jumper-mod=
e: t<br>=C2=A0 evil-leader-mode: t<br>=C2=A0 evil-mode: t<br>=C2=A0 global-=
undo-tree-mode: t<br>=C2=A0 undo-tree-mode: t<br>=C2=A0 evil-local-mode: t<=
br>=C2=A0 override-global-mode: t<br>=C2=A0 tooltip-mode: t<br>=C2=A0 elect=
ric-indent-mode: t<br>=C2=A0 mouse-wheel-mode: t<br>=C2=A0 tool-bar-mode: t=
<br>=C2=A0 file-name-shadow-mode: t<br>=C2=A0 global-font-lock-mode: t<br>=
=C2=A0 font-lock-mode: t<br>=C2=A0 auto-composition-mode: t<br>=C2=A0 auto-=
encryption-mode: t<br>=C2=A0 auto-compression-mode: t<br>=C2=A0 line-number=
-mode: t<br>=C2=A0 transient-mark-mode: t<br><br>Recent messages:<br>ad-han=
dle-definition: `evil-mode&#39; got redefined<br>Source file `/Users/Eddie/=
.emacs.d/lisp/bundle/dpaste_de-20131015.525/dpaste_de.el&#39; newer than by=
te-compiled file<br>ad-handle-definition: `find-tag-noselect&#39; got redef=
ined<br>Loading term/xterm...done<br>6am is refreshing<br><br>Load-path sha=
dows:<br>/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<br><br>Features:<br>(shadow sort my-gnus mail-extr emacsbug messa=
ge format-spec rfc822 mml<br>mml-sec mm-decode mm-bodies mm-encode mail-par=
se rfc2231 mailabbrev<br>gmm-utils mailheader sendmail rfc2047 rfc2045 ietf=
-drums mail-utils<br>xterm elisp-slime-nav help-mode etags eldoc my-conf my=
-lisp my-org<br>finder-inf which-key my-paste paste url url-proxy url-priva=
cy url-expand<br>url-methods url-history url-cookie url-domsuf url-util mai=
lcap dpaste_de<br>web s ucs-normalize rx time-stamp dash browse-url json ur=
l-parse<br>auth-source gnus-util time-date mm-util mail-prsvr password-cach=
e<br>url-vars my-tmux emux my-helm helm helm-source helm-multi-match helm-l=
ib<br>dired helm-config helm-easymenu cl-macs gv async-bytecomp async my-ev=
il<br>evil-jumper evil-leader evil evil-integration undo-tree diff evil-map=
s<br>evil-commands evil-command-window evil-types evil-search evil-ex<br>ev=
il-macros evil-repeat evil-states evil-core advice help-fns<br>evil-common =
windmove thingatpt rect evil-digraphs evil-vars ring<br>my-utils my-graphic=
s use-package diminish bind-key easy-mmode info<br>easymenu eieio byte-opt =
bytecomp byte-compile cl-extra cconv eieio-core<br>package epg-config edmac=
ro kmacro cl-loaddefs cl-lib tooltip electric<br>uniquify ediff-hook vc-hoo=
ks lisp-float-type mwheel ns-win tool-bar dnd<br>fontset image regexp-opt f=
ringe tabulated-list newcomment lisp-mode<br>prog-mode register page menu-b=
ar rfn-eshadow timer select scroll-bar<br>mouse jit-lock font-lock syntax f=
acemenu font-core frame cham georgian<br>utf-8-lang misc-lang vietnamese ti=
betan thai tai-viet lao korean<br>japanese hebrew greek romanian slovak cze=
ch european ethiopic indian<br>cyrillic chinese case-table epa-hook jka-cmp=
r-hook help simple abbrev<br>minibuffer nadvice loaddefs button faces cus-f=
ace macroexp files<br>text-properties overlay sha1 md5 base64 format env co=
de-pages mule<br>custom widget hashtable-print-readable backquote make-netw=
ork-process<br>cocoa ns multi-tty emacs)<br><br>Memory information:<br>((co=
nses 16 314308 152941)<br>=C2=A0(symbols 48 29606 97)<br>=C2=A0(miscs 40 32=
 184)<br>=C2=A0(strings 32 47915 121314)<br>=C2=A0(string-bytes 1 1321209)<=
br>=C2=A0(vectors 16 42457)<br>=C2=A0(vector-slots 8 705376 93653)<br>=C2=
=A0(floats 8 109 567)<br>=C2=A0(intervals 56 217 74)<br>=C2=A0(buffers 960 =
12))<br><br></div></div>

--047d7bea350e7d94eb052c2c9aab--




Acknowledgement sent to Shiyao Ma <i@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#22744; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Feb 2016 07:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.