# Problem with POST request with http\_poller plugin

**URL:** https://discuss.elastic.co/t/problem-with-post-request-with-http-poller-plugin/91910
**Category:** Logstash
**Created:** [July 5, 2017, 1:25pm UTC](https://discuss.elastic.co/t/problem-with-post-request-with-http-poller-plugin/91910 "2017-07-05T13:25:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sayantan\_Dey](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@Sayantan\_Dey](https://discuss.elastic.co/u/Sayantan_Dey)
#### Post date: [July 5, 2017, 1:25pm UTC](https://discuss.elastic.co/t/problem-with-post-request-with-http-poller-plugin/91910/1 "2017-07-05T13:25:09Z")

</div>

Hi,  
I'm using Logstash to import data from a http web-service. It uses post method to retrieve data.  
Now whenever I'm using the following format in my conf file, its throwing the following error: "Invalid url post".  
My conf file sytax is as follows:  
input {  
http\_poller{  
urls =\> {  
method =\> post  
url =\> "[https://zausvdisadey1:8243/services/SimpleProxy](https://zausvdisadey1:8243/services/SimpleProxy)"  
body =\> 'request xml body here'  
}  
request\_timeout =\> 60  
# Supports "cron", "every", "at" and "in" schedules by rufus scheduler  
schedule =\> { cron =\> "\* \* \* \* \* UTC"}  
codec =\> "plain"  
# A hash of request metadata info (timing, response headers, etc.) will be sent here  
metadata\_target =\> "http\_poller\_metadata"  
}  
}  
output {  
stdout { }  
}

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [July 7, 2017, 9:35am UTC](https://discuss.elastic.co/t/problem-with-post-request-with-http-poller-plugin/91910/2 "2017-07-07T09:35:01Z")

</div>

Please quote the full error message. Have you tried making the exact same request with e.g. curl?

---

<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: [August 4, 2017, 9:39am UTC](https://discuss.elastic.co/t/problem-with-post-request-with-http-poller-plugin/91910/3 "2017-08-04T09:39:51Z")

</div>

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