# How to send downlink to HTTP Integration from jQuery?

**URL:** <https://www.thethingsnetwork.org/forum/t/how-to-send-downlink-to-http-integration-from-jquery/32606>\
**Category:** Application Development\
**Created:** [December 12, 2019, 12:18pm UTC](https://www.thethingsnetwork.org/forum/t/how-to-send-downlink-to-http-integration-from-jquery/32606 "2019-12-12T12:18:06Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [December 17, 2019, 8:49am UTC](https://www.thethingsnetwork.org/forum/t/how-to-send-downlink-to-http-integration-from-jquery/32606/15 "2019-12-17T08:49:09Z")

</div>

Anything that runs on some server will do. Even some PHP script can translate a GET into the proper POST including the secrets for the integration, and such server-side PHP script will not enforce CORS. Of course, anyone who would know the URL could invoke that, unless you come up with some security.

If you really cannot set up a server of your own (but then I wonder what value you have for your client), then something like this might help:

> [@HTTP Integration: pass only payload\_fields](https://www.thethingsnetwork.org/forum/t/http-integration-pass-only-payload-fields/12261/5):
>
> If you don’t mind passing your data through on online service, you can use [https://putsreq.com](https://putsreq.com)
> 
> And write 3 lines of code:
> 
> ```auto
> var parsedBody = JSON.parse(request.body);
> request.body = parsedBody.payload_fields;
> request.forwardTo = 'YOURURI';
> 
> ```

(I’m not sure that allows for changing the HTTP method, using something like `request.request_method = 'POST'`. See [its examples](https://github.com/phstc/putsreq/blob/master/README.md).)

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/how-to-send-downlink-to-http-integration-from-jquery/32606)._
