# Curl test command does

**URL:** <https://discuss.elastic.co/t/curl-test-command-does/73091>\
**Category:** Elasticsearch\
**Created:** [January 28, 2017, 4:43pm UTC](https://discuss.elastic.co/t/curl-test-command-does/73091 "2017-01-28T16:43:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmcn\_es](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dmcn\_es](https://discuss.elastic.co/u/dmcn_es)\
**Post date:** [January 28, 2017, 4:43pm UTC](https://discuss.elastic.co/t/curl-test-command-does/73091/1 "2017-01-28T16:43:51Z")

</div>

Hi,

When I try to do curl test command it does not show valid output but a large amount of  
html web page code as an error, sample below.

I can connect to this servers kibana webpage.

[root@logstash1 elasticsearch-curator]# curl -XGET [http://127.0.0.1:9200](http://127.0.0.1:9200)

ERROR: The requested URL could not be retrieved \<!-- /\* Stylesheet for Squid Error pages Adapted from design by Free CSS Templates

Thanks,  
Daragh

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [January 28, 2017, 5:19pm UTC](https://discuss.elastic.co/t/curl-test-command-does/73091/2 "2017-01-28T17:19:06Z")

</div>

This suggests that Elasticsearch is not running on port 9200, but something else. Or are you trying to proxy load-balance Elasticsearch?

---

<div class="post-metadata">

**Author:** ![dmcn\_es](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dmcn\_es](https://discuss.elastic.co/u/dmcn_es)\
**Post date:** [January 28, 2017, 6:03pm UTC](https://discuss.elastic.co/t/curl-test-command-does/73091/3 "2017-01-28T18:03:10Z")

</div>

Hi Aaron,  
Thanks for your reply. I can check if there is a proxy server involved  
on Monday. I have to consult staff at the servers location, which is different to my work location.

Thanks,  
Daragh

---

<div class="post-metadata">

**Author:** ![dmcn\_es](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dmcn\_es](https://discuss.elastic.co/u/dmcn_es)\
**Post date:** [January 30, 2017, 9:08am UTC](https://discuss.elastic.co/t/curl-test-command-does/73091/4 "2017-01-30T09:08:41Z")

</div>

Hi Aaron,  
yes there is a proxy involved and when I unset that from the default server config,  
then curl command works as below.

Thanks,  
Daragh

Last login: Fri Jan 27 11:30:38 2017 from  
[root@logstash1 ~]# env | grep proxy  
http\_proxy=tfzproxy1:3128  
https\_proxy=tfzproxy1:3128  
[root@logstash1 ~]#  
[root@logstash1 ~]#  
[root@logstash1 ~]#  
[root@logstash1 ~]#  
[root@logstash1 ~]# unset http\_proxy  
[root@logstash1 ~]# unset https\_proxy  
[root@logstash1 ~]# env | grep proxy  
[root@logstash1 ~]#  
[root@logstash1 ~]#  
[root@logstash1 ~]#  
[root@logstash1 ~]# curl localhost:9200  
{  
"name" : "Zebediah Killgrave",  
"cluster\_name" : "elasticsearch",  
"version" : {  
"number" : "2.4.0",  
"build\_hash" : "ce9f0c7394dee074091dd1bc4e9469251181fc55",  
"build\_timestamp" : "2016-08-29T09:14:17Z",  
"build\_snapshot" : false,  
"lucene\_version" : "5.5.2"  
},  
"tagline" : "You Know, for Search"  
}  
[root@logstash1 ~]#

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 27, 2017, 9:08am UTC](https://discuss.elastic.co/t/curl-test-command-does/73091/5 "2017-02-27T09:08:46Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
