unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23620: 25.0.94; url-retrieve fails on localhost
@ 2016-05-25 18:45 Artur Malabarba
  2016-05-28 16:42 ` Paul Eggert
  2016-06-26 21:58 ` bug#23620: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 Paul Eggert
  0 siblings, 2 replies; 8+ messages in thread
From: Artur Malabarba @ 2016-05-25 18:45 UTC (permalink / raw)
  To: 23620


Assuming you have a webserver serving on localhost:5100, run the
following snippet:

(url-retrieve "http://localhost:5100/"
              (lambda (&rest r)
                (message "%S" r)))

It fails with the following error:
    (:error (error connection-failed "failed with code 111\n"
                   :host "localhost"
                   :service 5100))

Note that if I switch to a terminal and try curl:
    curl "http://localhost:5100/"
it works fine.

Using `url-retrieve' on remote urls also works fine.





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-10-21 23:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-25 18:45 bug#23620: 25.0.94; url-retrieve fails on localhost Artur Malabarba
2016-05-28 16:42 ` Paul Eggert
2016-06-01 14:55   ` Artur Malabarba
2016-06-01 16:43     ` Paul Eggert
2016-06-01 19:04       ` Artur Malabarba
2016-06-26 21:58 ` bug#23620: 24.3; url-retrieve-synchronously doesn't fallback to IPv4 Paul Eggert
2016-06-26 23:20   ` Juliusz Chroboczek
2017-10-21 23:55     ` bug#17976: " Noam Postavsky

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).