# \_search endpoint returns a 0 response when passing in URI paramters

**URL:** <https://discuss.elastic.co/t/-search-endpoint-returns-a-0-response-when-passing-in-uri-paramters/40592>\
**Category:** Elasticsearch\
**Created:** [February 1, 2016, 12:40am UTC](https://discuss.elastic.co/t/-search-endpoint-returns-a-0-response-when-passing-in-uri-paramters/40592 "2016-02-01T00:40:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaspermondie](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jaspermondie](https://discuss.elastic.co/u/jaspermondie)\
**Post date:** [February 1, 2016, 12:40am UTC](https://discuss.elastic.co/t/-search-endpoint-returns-a-0-response-when-passing-in-uri-paramters/40592/1 "2016-02-01T00:40:04Z")

</div>

When running a curl with no parameters in \_search eg:

> curl -XGET '[http://elasticsearch.url:9200/an\_index-\*/\_search](http://elasticsearch.url:9200/an_index-*/_search)

I am getting the desired results, however when I do a parameterized uri, ie:

> curl -XGET '[http://elasticsearch.url:9200/an\_index-\*/\_search?pretty=true&size=10](http://elasticsearch.url:9200/an_index-*/_search?pretty=true&size=10)

I get a curl: (52) empty reply from server.

Note that both calls are being called externally. If I call them within the elasticsearch instance ie. localhost, I get results on the second curl command.

Is this a configuration issue or a general bug? If it is the former, what is the correct configuration to enable parameterized uris from an external host.

Thanks.

---

<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:** [July 5, 2017, 11:20pm UTC](https://discuss.elastic.co/t/-search-endpoint-returns-a-0-response-when-passing-in-uri-paramters/40592/2 "2017-07-05T23:20:03Z")

</div>

Closed on July 5, 2017, 11:20pm UTC


