WebSetUserAgent Function

Action

Sets the HTTP/HTTPS user agent and overrides those of the workbench.

Include file

WebAPI.bdh

Syntax

WebSetUserAgent(in sUserAgent: string): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sUserAgent Contains the string to be used with the User-Agent header

Example

dcltrans
  transaction TWebInit
  begin
    WebSetUserAgent("CustomClient 1.0");
    WebDumpSettings();
  end TWebInit;