how to detect https inside handleSpecialURL ?


When I connect to my web app through the handleSpecialURL path, I use https … however some other folk may not do this.

I want to know whether a connection is secure. I can’t see any way to get this info …

Any thoughts ?

Tony Barry

Not tried it personally, but…

WebSession.Header( "HTTPS" ) = "on"

The WebRequest that is passed in as a parameter to HandleSpecialURL has a Secure property that you can check.

Thank you Sam and Paul ! Very good stuff.

Paul, the internal docs do not mention … but the online docs do.

Tony Barry

To what are you referring? If you mean the local Language Reference viewer, I see WebRequest.Secure there in 2016r4.1.