Sets, modifies or removes one or more user-defined headers for HTTP/HTTPS. Note that this function is only applicable to certain HTTP headers. It cannot be used to modify headers such as Accept, User-Agent and Accept-Encoding.
WebAPI.bdh
WebModifyHttpHeader( in sHeader : string, in sValue : string allownull, in nOption : number optional ): boolean;
true if successful
false otherwise
| Parameter | Description | 
|---|---|
| sHeader | User defined header. | 
| sValue | Value of the specified header. | 
| nOption | Can be one of the following values: 
 | 
dcltrans transaction TWeb begin WebModifyHttpHeader("Accept-Language", "en-us"); WebPageUrl("http://server/"); WebModifyHttpHeader("Accept-Language", "de", WEB_MODIFY_OPT_Add); WebPageUrl("http://server/"); end TWeb;