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: Sat, 20 Feb 2016 18:41:08 +1100 Message-ID: <871t87de23.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455954143 27956 80.91.229.3 (20 Feb 2016 07:42:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Feb 2016 07:42:23 +0000 (UTC) Cc: 22744@debbugs.gnu.org, wmperry@gnu.org To: Shiyao Ma Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 20 08:42: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 1aX2B9-0001L9-Rg for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Feb 2016 08:42:11 +0100 Original-Received: from localhost ([::1]:58907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aX2B9-00028K-3X for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Feb 2016 02:42:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aX2B5-000280-0m for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 02:42:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aX2B0-0000vN-Vh for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 02:42:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aX2B0-0000us-S1 for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 02:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aX2B0-00018g-GK for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2016 02:42: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: Sat, 20 Feb 2016 07:42: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.14559541034351 (code B ref 22744); Sat, 20 Feb 2016 07:42:02 +0000 Original-Received: (at 22744) by debbugs.gnu.org; 20 Feb 2016 07:41:43 +0000 Original-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 Original-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 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 1aX2AD-0000Va-9H; Sat, 20 Feb 2016 08:41:13 +0100 In-Reply-To: (Shiyao Ma's message of "Sat, 20 Feb 2016 13:09:25 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aX2AD-0000Va-9H MailScanner-NULL-Check: 1456558875.83095@ESrsYzZjbZGBZQR/RR1/SQ 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:113335 Archived-At: 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