You are here: Foswiki>System Web>Category>UserDocumentationCategory>Macros>VarHTTPS (2024-12-23, UnknownUser)Edit Attach
The same as %HTTP%
but operates on the HTTPS environment variables present when the SSL protocol is in effect. Can be used to determine whether SSL is turned on.
The HTTP and HTTPS macros are deprecated as of Foswiki release 2.1. and will be removed in a future release.
Parameter | Description | Default |
---|---|---|
"name" | Name of the header to get | optional |
Write | Returns | Notes |
---|---|---|
%HTTPS% | 1 | Returns '1' if HTTPS is active |
%HTTPS{"Accept-language"}% | ||
%HTTPS{"User-Agent"}% | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) | |
%HTTPS{"Cookie"}% | Not allowed by default. |
You can see the HTTP headers your browser sends to the server on a number of sites e.g. http://www.ericgiguere.com/tools/http-header-viewer.html
Edit | Attach | Print version | History: r1 | Backlinks | View wiki text | Edit wiki text | More topic actions
Topic revision: r1 - 2024-12-23, UnknownUser
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback