how to detect https inside handleSpecialURL ?

Greetings,

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 ?

Regards,
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.

http://documentation.xojo.com/index.php/WebRequest.Secure

Thank you Sam and Paul ! Very good stuff.

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

Regards,
Tony Barry

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