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

Previous Next

Package: emacs;

Reported by: Shiyao Ma <i <at> introo.me>

Date: Sat, 20 Feb 2016 06:58:03 UTC

Severity: normal

Found in version 24.5

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Shiyao Ma <i <at> introo.me>
Cc: Nicolas Petton <nicolas <at> petton.fr>, 22744 <at> debbugs.gnu.org
Subject: bug#22744: 24.5; url-retrieve callback is not invoked when http response content is empty
Date: Mon, 22 Feb 2016 14:03:00 +1100
Shiyao Ma <i <at> introo.me> 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




This bug report was last modified 5 years and 236 days ago.

Previous Next


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