# Post data to logstash using http input

**URL:** <https://discuss.elastic.co/t/post-data-to-logstash-using-http-input/69166>\
**Category:** Logstash\
**Created:** [December 15, 2016, 1:06pm UTC](https://discuss.elastic.co/t/post-data-to-logstash-using-http-input/69166 "2016-12-15T13:06:37Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![adhikz](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@adhikz](https://discuss.elastic.co/u/adhikz)\
**Post date:** [December 20, 2016, 11:55am UTC](https://discuss.elastic.co/t/post-data-to-logstash-using-http-input/69166/8 "2016-12-20T11:55:43Z")

</div>

@jsvd thanks for your response. Here is the POST request sent from my browser sent to logstash :

> ```
> xhr = new XMLHttpRequest();
> var url = "http://localhost:5043";
> xhr.open("POST", url, true);
> xhr.setRequestHeader("Content-type", "application/json");
> var data = JSON.stringify({"test" : hello});
> xhr.send(data);
> 
> ```

I basically expect to see "hello" pass into the message in logstash

---

_[View the full topic](https://discuss.elastic.co/t/post-data-to-logstash-using-http-input/69166)._
