Xbasic
A5_HTTP Function
Syntax
Mode as C = a5_http()
Returns
- ModeCharacter
Either "http://" or "https://" depending on whether SSL is running.
Description
Returns either 'http://' or 'https://' depending on whether SSL is running.
Discussion
The A5_HTTP() function determines whether SSL is running. This is a useful function when you are constructing a URL. However, a more efficient way to determine if SSL was used for a request of an executing A5W page is to look at the value of ServerSetting.SSL_Enabled.
Example
? a5_http() = "http://"
This example displays the ServerSetting.SSL_Enabled on an A5W page.
<head> <meta name="generator" content="Alpha Anywhere HTML Editor"> <title></title> </head> <body> <p> <%a5 ? serversetting.ssl_enabled %> </p> </body> </html>
See Also