Entering content frameBackground documentation ~secure Locate the document in its SAP Library structure

Description

Determines whether to use a secure or an unsecure protocol.

The value of ~secure determines whether to use the secure (HTTPS) or unsecure (HTTP) protocol:

  • If ~secure is set to on , an absolute URL is created and HTTPS is used

You use this value to switch from HTTP (unsecure) to HTTPS (secure) communication within a session.

  • If ~secure is set to off , an absolute URL is created and HTTP is used

You use this value to switch from HTTPS (secure) to HTTP (unsecure) communication within a session.

  • If ~secure is not defined, a relative URL is created

You can also query whether the current request is using HTTPS or HTTP by setting ~secure to the value of ~http_https . In this case, the URL expands to use either HTTPS or HTTP.

Set by

HTMLBusiness code.

You use this parameter in the HTMLBusiness functions wgateURL and mimeURL .

Values

Undefined

Creates a relative URL.

on

Creates an absolute URL and uses the protocol type HTTPS.

off

Creates an absolute URL and uses the protocol type HTTP.

Examples

  • <a href="`wgateURL(~okcode="back", ~secure="on")`">

    expands to:

    <a href="https://myHost:444/scripts/wgate/
    vw01/!?~okcode=back">
  • <a href="`wgateURL(~okcode="back", ~secure="off")`">

    expands to:

    <a href="http://myHost:1080/scripts/wgate/
    vw01/!f?~okcode=back">
  • <a href="`wgateURL(~okcode="back", ~secure=~http_https)`">

    expands to either the HTTP or the HTTPS variant, depending on the protocol type of the current request.
Leaving content frame