# Sending msearch/template request without using -data-binary

**URL:** <https://discuss.elastic.co/t/sending-msearch-template-request-without-using-data-binary/66802>\
**Category:** Elasticsearch\
**Created:** [November 22, 2016, 1:23am UTC](https://discuss.elastic.co/t/sending-msearch-template-request-without-using-data-binary/66802 "2016-11-22T01:23:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharat\_Jagannath](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sharat_jagannath/32/24299_2.png) [@Sharat\_Jagannath](https://discuss.elastic.co/u/Sharat_Jagannath)\
**Post date:** [November 22, 2016, 1:23am UTC](https://discuss.elastic.co/t/sending-msearch-template-request-without-using-data-binary/66802/1 "2016-11-22T01:23:03Z")

</div>

Hi  
From the link [https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-search-template.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-search-template.html)  
it uses data-binary option of [curl.Is](http://curl.Is) is possible to this command without that option and instead pass the query directly over curl?

Thanks

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [November 22, 2016, 10:53am UTC](https://discuss.elastic.co/t/sending-msearch-template-request-without-using-data-binary/66802/2 "2016-11-22T10:53:07Z")

</div>

Without having it tried out, I would think so. Typing many distinct requests to the command-line sounds rather clumsy and error prone to me though.

The only thing that --data-binary does is to leave the newlines in the file referenced as they are instead of stripping them out.

Hope this helps,  
Isabel

---

<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:** [December 20, 2016, 10:53am UTC](https://discuss.elastic.co/t/sending-msearch-template-request-without-using-data-binary/66802/3 "2016-12-20T10:53:47Z")

</div>

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