Skip to content

Instantly share code, notes, and snippets.

@13k
Created November 28, 2014 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 13k/46f7c427a64f1e48f5a6 to your computer and use it in GitHub Desktop.
Save 13k/46f7c427a64f1e48f5a6 to your computer and use it in GitHub Desktop.
curl bug
$ curl 127.0.0.1:9200
{
"status" : 200,
"name" : "Stonewall",
"version" : {
"number" : "1.3.4",
"build_hash" : "a70f3ccb52200f8f2c87e9c370c6597448eb3e45",
"build_timestamp" : "2014-09-30T09:07:17Z",
"build_snapshot" : false,
"lucene_version" : "4.9"
},
"tagline" : "You Know, for Search"
}
$ curl -v localhost:9200
* Rebuilt URL to: localhost:9200/
* Hostname was NOT found in DNS cache
* Trying ::1...
* connect to ::1 port 9200 failed: Connection refused
* Trying fe80::1...
* connect to fe80::1 port 9200 failed: Connection refused
* Failed to connect to localhost port 9200: Connection refused
* Closing connection 0
curl: (7) Failed to connect to localhost port 9200: Connection refused
$ curl --version
curl 7.37.1 (x86_64-apple-darwin14.0) libcurl/7.37.1 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment