all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Shiyao Ma <i@introo.me>
Cc: 22744@debbugs.gnu.org, wmperry@gnu.org
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	[thread overview]
Message-ID: <871t87de23.fsf@gnus.org> (raw)
In-Reply-To: <CAJQX3Dx3JipbzBDL3hVsWf08NzAeB_uwL_PagAJV9TF=eUTB6A@mail.gmail.com> (Shiyao Ma's message of "Sat, 20 Feb 2016 13:09:25 +0800")

Shiyao Ma <i@introo.me> 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





  reply	other threads:[~2016-02-20  7:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-20  5:09 bug#22744: 24.5; url-retrieve callback is not invoked when http response content is empty Shiyao Ma
2016-02-20  7:41 ` Lars Ingebrigtsen [this message]
2016-02-20 11:15   ` Shiyao Ma
2016-02-21  2:57     ` Lars Ingebrigtsen
2016-02-21 10:51       ` Shiyao Ma
2016-02-22  3:03         ` Lars Ingebrigtsen
2019-09-24  8:14           ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871t87de23.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=22744@debbugs.gnu.org \
    --cc=i@introo.me \
    --cc=wmperry@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.