GNU bug report logs - #12893
24.2.50; url-retrieve fails for localhost

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Thu, 15 Nov 2012 09:00:02 UTC

Severity: normal

Found in version 24.2.50

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


Message #38 received at 12893 <at> debbugs.gnu.org (full text, mbox):

From: Juliusz Chroboczek <jch <at> pps.univ-paris-diderot.fr>
To: Dmitry Gutov <dgutov <at> yandex.ru>, 12893 <at> debbugs.gnu.org
Subject: Re: 24.2.50; url-retrieve fails for localhost
Date: Sun, 13 Jul 2014 18:59:51 +0200
> If I evaluate (switch-to-buffer (url-retrieve-synchronously
> "http://localhost:24959/classes")), it brings me to an empty buffer
> which has "failed" in the mode line.
[...]
> Strangely, it works if I replace "localhost" with "127.0.0.1" or even
> "localhost.localdomain". But neither Firefox nor curl have a problem
> with reading from the first version of the URL.

This might be a duplicate of #17976.  If localhost points at both ::1 and
127.0.0.1, then attempting to connect localhost will first try the IPv6,
and if the server is only listening on IPv4, it will trigger #17976.

-- Juliusz




This bug report was last modified 10 years and 164 days ago.

Previous Next


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