WebGetHttpHeader Function

Action

Gets all user-defined headers for HTTP/HTTPS that are currently set. Note that this function retrieves values that are set with the WebSetHttpHeader function, but it does not retrieve values that are set with the WebHeaderAdd function.

Include file

WebAPI.bdh

Syntax

WebGetHttpHeader( out sHeader : string,
                  in  nMaxLen : number optional ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
sHeader A string buffer that will receive the current list of HTTP headers.
nMaxLen The maximum length of the receive buffer sHeader (optional).

Example

dcltrans
  transaction TWebInit
  var
    sHeader : string;
  begin
    WebGetHttpHeader(sHeader);
    write("HttpHeader: "); write(sHeader); writeln;
  end TWebInit;