# Is it possible to generate a .stream file using a http get request?

**URL:** <https://community.wowza.com/t/is-it-possible-to-generate-a-stream-file-using-a-http-get-request/44519>\
**Category:** Wowza Streaming Engine\
**Created:** [April 26, 2015, 12:14pm UTC](https://community.wowza.com/t/is-it-possible-to-generate-a-stream-file-using-a-http-get-request/44519 "2015-04-26T12:14:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir\_Guterman1](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@Amir\_Guterman1](https://community.wowza.com/u/Amir_Guterman1)\
**Post date:** [April 26, 2015, 12:14pm UTC](https://community.wowza.com/t/is-it-possible-to-generate-a-stream-file-using-a-http-get-request/44519/1 "2015-04-26T12:14:00Z")

</div>

Is it possible to generate a .stream file using a http get request?

for example:

```auto
http://[wowza-ip-address]:8086/someinterface?streamname=mynewstreamfile.stream&application=live&restreamurl=rtmp://someotherserver:1935/live/_definst_/streamName

```

I would like a new file called mynewstreamfile.stream to be generated under ‘\content’ or ‘\content\live’ having the content:

```auto
rtmp://someotherserver:1935/live/_definst_/streamName

```

thanks

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [April 26, 2015, 8:42pm UTC](https://community.wowza.com/t/is-it-possible-to-generate-a-stream-file-using-a-http-get-request/44519/2 "2015-04-26T20:42:11Z")

</div>

Hi,

There isn’t a http request that will do that, but you can simply create a .stream file in the content folder which contains the URL required.

Then if you what to automatically start that stream after the file is created you can [use this method.](https://www.wowza.com/docs/how-to-monitor-content-folder-for-sdp-and-stream-files-to-start-publishing-streams-serverlistenerstartupstreamsmonitor%28monitor-content-folder-for-sdp-and-stream-files%29)

Daren

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [April 28, 2015, 11:12pm UTC](https://community.wowza.com/t/is-it-possible-to-generate-a-stream-file-using-a-http-get-request/44519/3 "2015-04-28T23:12:30Z")

</div>

Hi,

There isn’t a complete tutorial as such, but there are several [examples here](https://www.wowza.com/docs/http-providers) that can provide good starting points.

Daren

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [September 20, 2015, 7:04am UTC](https://community.wowza.com/t/is-it-possible-to-generate-a-stream-file-using-a-http-get-request/44519/4 "2015-09-20T07:04:36Z")

</div>

Thank you for sharing your findings here.

Salvadore

---

<div class="post-metadata">

**Author:** ![Amir\_Guterman1](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@Amir\_Guterman1](https://community.wowza.com/u/Amir_Guterman1)\
**Post date:** [April 27, 2015, 12:22pm UTC](https://community.wowza.com/t/is-it-possible-to-generate-a-stream-file-using-a-http-get-request/44519/5 "2015-04-27T12:22:07Z")

</div>

Thanks for your reply,

Actually, in my application the addresses (in the .stream file) are changing constantly and should be created for each user and deleted when user logs out.

I guess I would need to create a custom httpprovider (for each wowza instance) which generates .stream files on demand.

Is there a good tutorial for creating or extending httpprovider?

I’m using Wowza Streaming Engine 4

thanks!

Amir

---

<div class="post-metadata">

**Author:** ![Amir\_Guterman1](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@Amir\_Guterman1](https://community.wowza.com/u/Amir_Guterman1)\
**Post date:** [June 17, 2015, 1:40pm UTC](https://community.wowza.com/t/is-it-possible-to-generate-a-stream-file-using-a-http-get-request/44519/6 "2015-06-17T13:40:04Z")

</div>

There is a way:

examples taken from here in the Stream Management section:

[https://www.wowza.com/docs/how-to-use-curl-to-query-wowza-rest-api](https://www.wowza.com/docs/how-to-use-curl-to-query-wowza-rest-api)

**Get a list of stream files**

curl -X GET --header ‘Accept:application/json; charset=utf-8’ [http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamfiles](http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamfiles)

**Add a stream file**

curl -X POST --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ [http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamfiles/axis](http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamfiles/axis) -d’

{

“restURI”: “[http://localhost:8087/v2/servers/](http://localhost:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamfiles”,

“streamFiles”: [

{

“id”: “connectAppName= testlive&appInstance=_definst_&mediaCasterType=rtp”,

“href”: “[http://localhohst:8087/v2/servers/](http://localhohst:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamfiles/connectAppName=testlive&appInstance=_definst_&mediaCasterType=rtp”

}

]

}’

**Connect a stream file**

curl -X PUT --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ “[http://localhost:8087/v2/servers/](http://localhost:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/streamfiles/metallica/actions/connect?connectAppName=testlive&appInstance=_definst_&mediaCasterType=rtp”

**Remove a stream file**

curl -X DELETE --header ‘Accept:application/json; charset=utf-8’ [http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamfiles/axis](http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamfiles/axis)
