# HTTP URL Request on RTSP teardown

**URL:** <https://community.wowza.com/t/http-url-request-on-rtsp-teardown/41100>\
**Category:** Wowza Streaming Engine\
**Created:** [November 12, 2014, 12:36pm UTC](https://community.wowza.com/t/http-url-request-on-rtsp-teardown/41100 "2014-11-12T12:36:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gollapudi\_Sridhar](https://avatars.discourse-cdn.com/v4/letter/g/8edcca/32.png) [@Gollapudi\_Sridhar](https://community.wowza.com/u/Gollapudi_Sridhar)\
**Post date:** [November 12, 2014, 12:36pm UTC](https://community.wowza.com/t/http-url-request-on-rtsp-teardown/41100/1 "2014-11-12T12:36:39Z")

</div>

Hi,

can anyone please help me with a sample code snippet to invoke a http url whenever any of RTSP methods such as onPlay(), onPause(), onDescribe(), onAnounce(), onOptions() and onteardown() is triggered ? I want to invoke a URL over http and want to receive its response. Based on the response, i want to control the session. How to achieve this ? Please help me in this regard.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [November 14, 2014, 6:27pm UTC](https://community.wowza.com/t/http-url-request-on-rtsp-teardown/41100/2 "2014-11-14T18:27:18Z")

</div>

Hi,

The HTTPUtils class contains methods that can be used to construct HTTP queries. It’s described in the [Server Side API](https://www.wowza.com/resources/WowzaStreamingEngine_ServerSideAPI.pdf). Or you could construct your own URL. A search of the forums for HTTPRequestToByteArray or URLConnection should provide some examples. [This snippet](https://www.wowza.com/forums/showthread.php?1387-Making-a-HTTP-request&p=6737#post6737) for example has both :).

Paul
