# HTTP streaming: Is this possible in Ignition?

**URL:** <https://forum.inductiveautomation.com/t/http-streaming-is-this-possible-in-ignition/84956>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [January 30, 2024, 3:10pm UTC](https://forum.inductiveautomation.com/t/http-streaming-is-this-possible-in-ignition/84956 "2024-01-30T15:10:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mudbay](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@mudbay](https://forum.inductiveautomation.com/u/mudbay)\
**Post date:** [January 30, 2024, 3:10pm UTC](https://forum.inductiveautomation.com/t/http-streaming-is-this-possible-in-ignition/84956/1 "2024-01-30T15:10:58Z")

</div>

We have an application where an Edge Device (Server) will stream data after an initial GET HTTP request, but we are not sure how to implement the Python Scripts to handle the streaming response. Does anyone have any experience with this type of HTTP request? Many thanks in advance to the forum.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 30, 2024, 5:36pm UTC](https://forum.inductiveautomation.com/t/http-streaming-is-this-possible-in-ignition/84956/2 "2024-01-30T17:36:12Z")

</div>

I would expect this to be possible with `system.net.httpClient`. If it doesn't work directly "out of the box", there's an escape hatch attribute; `system.net.httpClient().javaClient` will return the underlying [`java.net.http.HttpClient`](https://docs.oracle.com/en/java/javase/17/docs/api/java.net.http/java/net/http/HttpClient.html) instance, which you can call any of the Java methods on directly.

---

<div class="post-metadata">

**Author:** ![sam.pries](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sam.pries/32/28072_2.png) [@sam.pries](https://forum.inductiveautomation.com/u/sam.pries)\
**Post date:** [January 30, 2024, 6:07pm UTC](https://forum.inductiveautomation.com/t/http-streaming-is-this-possible-in-ignition/84956/3 "2024-01-30T18:07:11Z")

</div>

I did this for a few applications in a few different ways. You can use the example from the exchange is this weather api [Ignition Exchange | Inductive Automation](https://inductiveautomation.com/exchange/61/overview) to collect data via and API and do something with it ie parse it into tags. This is not documented but it is easy enough to dig through.

Alternatively, you can use thewebplebs method [https://www.youtube.com/watch?v=76yyws1odKA](https://www.youtube.com/watch?v=76yyws1odKA) to send data somewhere.

At the end of the day, you will need to understand your stream first. JSON is easy to parse. Once you know what your stream looks like, you can parse the data out at a particular poll rate.

There are also some Ignition/Redis and Ignition/Kafka modules that are publically available in Git Hub. Should you want to go that route, you will be on your own there.

---

<div class="post-metadata">

**Author:** ![mudbay](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@mudbay](https://forum.inductiveautomation.com/u/mudbay)\
**Post date:** [January 31, 2024, 12:47am UTC](https://forum.inductiveautomation.com/t/http-streaming-is-this-possible-in-ignition/84956/4 "2024-01-31T00:47:26Z")

</div>

Thanks guys. I will look into these options and see where I land.
