WebSetHttpHeader Function

Action

Sets one or more user-defined headers for HTTP/HTTPS.

Include file

WebAPI.bdh

Syntax

WebSetHttpHeader( in sHeader : string ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sHeader User defined header
Note: One header must not be terminated by a CRLF sequence. Multiple headers must be separated by a CRLF sequence.

Example

dcltrans
  transaction TWebInit
  begin
    WebSetHttpHeader("CustomHeader: CustomValue");
    WebDumpSettings();
  end TWebInit;

Sample scripts

WebHttpHeaders01.bdf