unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Shiyao Ma <i@introo.me>
Cc: 22744@debbugs.gnu.org
Subject: bug#22744: 24.5; url-retrieve callback is not invoked when http response content is empty
Date: Sun, 21 Feb 2016 13:57:52 +1100	[thread overview]
Message-ID: <87h9h2hirz.fsf@gnus.org> (raw)
In-Reply-To: <CAJQX3DxruV0Xbq5XaoeTBOD8jevUwxWYpw8N-AO2pW7pAJKAmA@mail.gmail.com> (Shiyao Ma's message of "Sat, 20 Feb 2016 19:15:27 +0800")

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





  reply	other threads:[~2016-02-21  2:57 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
2016-02-20 11:15   ` Shiyao Ma
2016-02-21  2:57     ` Lars Ingebrigtsen [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87h9h2hirz.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=22744@debbugs.gnu.org \
    --cc=i@introo.me \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).