# How to capture HTTP posts

**URL:** <https://discourse.nodered.org/t/how-to-capture-http-posts/9370>\
**Category:** General\
**Created:** [24 March 2019 17:38 UTC](https://discourse.nodered.org/t/how-to-capture-http-posts/9370 "2019-03-24T17:38:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alanc](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@alanc](https://discourse.nodered.org/u/alanc)\
**Post date:** [24 March 2019 17:38 UTC](https://discourse.nodered.org/t/how-to-capture-http-posts/9370/1 "2019-03-24T17:38:09Z")

</div>

I am trying to capture and eventually store in MySQL, all HTTP posts sent to my server.  
The sender is a public Minecraft server with a computercraft mod that has a Lua HTTP API.  
A colleague was able to make a Python program capturing and storing these on my server but now I want to handle them via Node-RED.

1. if [http://mysite:1880](http://mysite:1880) is running Node-RED, what URL does the Post have to use?
2. How would I go on about capturing these? Note, there can be multiple every second.  
I already have experience with MQTT -\> JSON2JsObject -\> MySQL in Node-RED, I just have zero experience with HTTP messages.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [24 March 2019 18:45 UTC](https://discourse.nodered.org/t/how-to-capture-http-posts/9370/2 "2019-03-24T18:45:48Z")

</div>

Take a look at the http nodes (not the http request node) As you configure the node you select the endpoint name but it would be [http://mysite:1880/endpointname](http://mysite:1880/endpointname)

If you are using the http-in node your flow has to have a route to the http-out node so that a message is sent back to whatever requested the “page”

Take a look at the http endpoints example in the cookbook [https://cookbook.nodered.org](https://cookbook.nodered.org)
