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.
WebAPI.bdh
WebGetHttpHeader( out sHeader : string, in nMaxLen : number optional ): boolean;
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). |
dcltrans transaction TWebInit var sHeader : string; begin WebGetHttpHeader(sHeader); write("HttpHeader: "); write(sHeader); writeln; end TWebInit;