curl bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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