# Streaming uri via Cookie

**URL:** <https://discourse.gstreamer.org/t/streaming-uri-via-cookie/3512>\
**Category:** Application Development\
**Created:** [October 31, 2024, 6:28pm UTC](https://discourse.gstreamer.org/t/streaming-uri-via-cookie/3512 "2024-10-31T18:28:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![schreck](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@schreck](https://discourse.gstreamer.org/u/schreck)\
**Post date:** [October 31, 2024, 6:28pm UTC](https://discourse.gstreamer.org/t/streaming-uri-via-cookie/3512/1 "2024-10-31T18:28:30Z")

</div>

I’m looking to stream a HLS source using a Cookie as the auth method. I don’t see any option within urisourcebin, but looking at souphttpsrc there is a `cookie` property that takes a Gstv… I can’t seem to figure out the format to send that in via gst-launch.

Has anyone run across this? Or used a different element to stream uris via cookies?

---

<div class="post-metadata">

**Author:** ![philn](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/philn/32/13_2.png) [@philn](https://discourse.gstreamer.org/u/philn)\
**Post date:** [November 1, 2024, 1:57pm UTC](https://discourse.gstreamer.org/t/streaming-uri-via-cookie/3512/2 "2024-11-01T13:57:09Z")

</div>

iirc the way to do this is to create a SoupSession, add a cookie jar to it (the jar would contain whatever cookie you want to set), then wrap the session in a GstContext (named `gst.soup.session`) and then set that context on the pipeline.
