WebSetKeepAlive Function

Action

Sets the Keep-Connection semantics for HTTP/HTTPS.

Note: A subsequent WebSetBrowser call will override this setting.

Include file

WebAPI.bdh

Syntax

WebSetKeepAlive( in bAlive : boolean ) : boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
bAlive If this parameter is set to true, a Keep-Alive header is added to the request
Note: Silk Performer automatically tries to reuse an open connection on subsequent requests.

Example

dcltrans
  transaction TWebInit
  begin
    WebSetKeepAlive(true);
  end TWebInit;

Sample scripts

WebMultiClientIpAddresses01.bdf