"Access Denied" when I try to execute "curl -XGET localhost:9200"

(Young Heon Kim) #1

Hi All.
I try to use elasticsearch for my job.
But I found some error when I use it.

I can connect http://my_id_address:9200 using my browser.

status: 200,
name: "Dreadnought",
cluster_name: "elasticsearch",
version: {
number: "1.7.3",
build_hash: "05d4530971ef0ea46d0f4fa6ee64dbc8df659682",
build_timestamp: "2015-10-15T09:14:17Z",
build_snapshot: false,
lucene_version: "4.10.4"
tagline: "You Know, for Search"

But I can get some date using command line.

curl -XGET my_id_address:9200



The requested URL could not be retrieved

The following error was encountered while trying to retrieve the URL: http://my_id_address:9200/

Access Denied.

....... ....... .....

Do you know why this error occurred?

(Stephane Steph) #2

Looks like a proxy issue. Check your ~/.curlrc.

(system) #3