# Using curl or Postman for the HTTP Integration on Windows

**URL:** <https://www.thethingsnetwork.org/forum/t/using-curl-or-postman-for-the-http-integration-on-windows/12467>\
**Category:** Application Development\
**Created:** [February 8, 2018, 10:54pm UTC](https://www.thethingsnetwork.org/forum/t/using-curl-or-postman-for-the-http-integration-on-windows/12467 "2018-02-08T22:54:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CurlyWurly](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/curlywurly/32/38668_2.png) [@CurlyWurly](https://www.thethingsnetwork.org/forum/u/CurlyWurly)\
**Post date:** [February 8, 2018, 10:54pm UTC](https://www.thethingsnetwork.org/forum/t/using-curl-or-postman-for-the-http-integration-on-windows/12467/1 "2018-02-08T22:54:03Z")

</div>

A few people have had trouble with the curl command with HTTP integration, just posting this as it works for me when I use the **Windows version of Curl**

Everything is OK with the curl command, but you need to slightly change the “data” part in a manner similar to the following

Try replacing  
`'{"dev_id":"yourdev","payload_raw":"AQE="}'`  
with

`"{\"dev_id\":\"yourdev\",\"payload_raw\":\"AQE=\"}"`

i.e. use **"** instead of **’** to encapsulate the whole JSON and escape the **"** inside the json with a preceeding \

Your curl should look something like this

`curl -v -X POST --data "{\"dev_id\":\"yourdev\",\"payload_raw\":\"AQE=\"}" https://integrations.thethingsnetwork.org/ttn-eu/api/v2/down/thing_nodes/http_1?key=ttn-account-v2.xxxxxxxxxxxxxxxxxxxxxxxxxxx`

Hope it helps someone  
[https://www.thethingsnetwork.org/forum/t/downlink-from-http-integration-does-not-show-in-ttn-console-and-does-not-reach-my-device/10330](https://www.thethingsnetwork.org/forum/t/downlink-from-http-integration-does-not-show-in-ttn-console-and-does-not-reach-my-device/10330)

[https://www.thethingsnetwork.org/forum/t/downlink-created-using-the-http-integration-is-not-shown-in-the-devices-data-page-of-ttn-console/12442/11](https://www.thethingsnetwork.org/forum/t/downlink-created-using-the-http-integration-is-not-shown-in-the-devices-data-page-of-ttn-console/12442/11)

---

<div class="post-metadata">

**Author:** ![CurlyWurly](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/curlywurly/32/38668_2.png) [@CurlyWurly](https://www.thethingsnetwork.org/forum/u/CurlyWurly)\
**Post date:** [February 8, 2018, 6:27pm UTC](https://www.thethingsnetwork.org/forum/t/using-curl-or-postman-for-the-http-integration-on-windows/12467/2 "2018-02-08T18:27:20Z")

</div>

Or, use [Postman](https://www.getpostman.com/).

Try the following to set it up (sorry for rubbish pics)

1. HTTP Integration

2. Go to [https://requestb.in](https://requestb.in) and set up an endpoint

3. After setting up requestb.in, you will get a webpage endpoint like below

4. Go back to the TTN console and enter the webpage endpoint as below (without the `?inspect`)

5. Send some data and go back to Requestb.in. You will see some data now.

6. Use that URL to schedule a downlink. **N.B. Remember to set “No Auth” for authorisation in postman** - OK for testing etc

---

<div class="post-metadata">

**Author:** ![kukaoo](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kukaoo/32/10333_2.png) [@kukaoo](https://www.thethingsnetwork.org/forum/u/kukaoo)\
**Post date:** [February 11, 2018, 12:39pm UTC](https://www.thethingsnetwork.org/forum/t/using-curl-or-postman-for-the-http-integration-on-windows/12467/3 "2018-02-11T12:39:26Z")

</div>

> [@CurlyWurly](#):
>
> trouble with the curl command with HTTP integration, just posting this as it works for me when I use the Windows version of Curl
> 
> Everything is OK with the curl command, but you need to slightly change the “data” part in a manner similar to the following
> 
> Try replacing
> 
> ‘{“dev\_id”:“yourdev”,“payload\_raw”:“AQE=”}’
> 
> with
> 
> “{"dev\_id":"yourdev","payload\_raw":"AQE="}”
> 
> i.e. use " instead of ’ to encapsulate the whole JSON and escape the " inside the json with a preceeding \
> 
> Your curl should look something like this
> 
> curl -v -X POST --data “{"dev\_id":"yourdev","payload\_raw":"AQE="}” [https://integrations.thethingsnetwork.org/](https://integrations.thethingsnetwork.org/)

Thanks this solves my problem

---

<div class="post-metadata">

**Author:** ![Mondor](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mondor/32/22853_2.png) [@Mondor](https://www.thethingsnetwork.org/forum/u/Mondor)\
**Post date:** [March 19, 2019, 7:30pm UTC](https://www.thethingsnetwork.org/forum/t/using-curl-or-postman-for-the-http-integration-on-windows/12467/4 "2019-03-19T19:30:32Z")

</div>

Hi. I’m trying to integrate this in Android studio using Volley, but I don’t have any idea how to use “dev\_id”:“yourdev” as a parameter. Those ‘’ are my problem. I’m kind of new to this so any solution would be usefull
