# Query string placement in stream URLs

**URL:** https://community.wowza.com/t/query-string-placement-in-stream-urls/39724
**Category:** Wowza Streaming Engine
**Created:** [March 5, 2013, 9:59pm UTC](https://community.wowza.com/t/query-string-placement-in-stream-urls/39724 "2013-03-05T21:59:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sean\_Green](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@Sean\_Green](https://community.wowza.com/u/Sean_Green)
#### Post date: [March 5, 2013, 9:59pm UTC](https://community.wowza.com/t/query-string-placement-in-stream-urls/39724/1 "2013-03-05T21:59:18Z")

</div>

What is the proper placement for querystrings for the different stream types? I saw an article a few days ago that gave examples of the various stream URLs and one of them had the querystring directly after the streamname but before the postfix, but now I can’t find the article… Does the querystring go in different places for different stream types? If so, where is the documentation on that?

Thanks,

Sean

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [March 6, 2013, 2:53pm UTC](https://community.wowza.com/t/query-string-placement-in-stream-urls/39724/2 "2013-03-06T14:53:33Z")

</div>

Sean,

For HTTP clients, at the end like this:

```auto
http://[wowza-address]:1935/vod/sample.mp4/playlist.m3u8?richard&myPassword

```

You can process the above in onHTTPSessionCreate

[https://www.wowza.com/docs/how-to-control-access-to-http-streams-cupertinostreaming-sanjosestreaming-smoothstreaming-mpegdashstreaming](https://www.wowza.com/docs/how-to-control-access-to-http-streams-cupertinostreaming-sanjosestreaming-smoothstreaming-mpegdashstreaming)

For RTSP clients add querystring to the end also, then process in onRTPSessionCreate

[https://www.wowza.com/docs/how-to-control-access-to-rtsp-rtp-streams](https://www.wowza.com/docs/how-to-control-access-to-rtsp-rtp-streams)

RTMP clients are another case. If you want to process in [onConnect](https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-url-query-strings-onconnectauthenticate2) you have to add after the application name: rtmp://[wowza-address]:1935/vod?richard&myPassword

But if you want to process in [play override](https://www.wowza.com/docs/how-to-override-play-to-control-access) you have to add to the stream name.

Richard
