WebGetSecurity Function

Action

Returns the currently active security mode for web traffic simulation on protocol level..

Include file

WebAPI.bdh

Syntax

WebGetSecurity(): number;

Return value

One of the following values defined in WebAPI.bdh:

  • WEB_SECURITY_NONE

  • WEB_SECURITY_SSL

Example

dcltrans 
  transaction TWebInit 
  begin 
    write("Security: "); 
    if WebGetSecurity() = WEB_SECURITY_SSL then write("SSL"); 
    writeln; 
  else 
    write("none");
    writeln; 
    end; 
  end TWebInit;