# Check for SSL in OnConnect and onHTTPSessionCreate

**URL:** <https://community.wowza.com/t/check-for-ssl-in-onconnect-and-onhttpsessioncreate/33605>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [April 4, 2014, 3:55pm UTC](https://community.wowza.com/t/check-for-ssl-in-onconnect-and-onhttpsessioncreate/33605 "2014-04-04T15:55:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karel\_Boek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/karel_boek/32/454_2.png) [@Karel\_Boek](https://community.wowza.com/u/Karel_Boek)\
**Post date:** [April 4, 2014, 3:55pm UTC](https://community.wowza.com/t/check-for-ssl-in-onconnect-and-onhttpsessioncreate/33605/1 "2014-04-04T15:55:14Z")

</div>

How can I check if a connection uses SSL? I’m building a custom redirector, and in the onHTTPSessionCreate I need to know if the user connected with HTTP or HTTPS, and same for RTMP and RTMPS in OnConnect.
