Example: web_add_auto_header

In the following example, the web_add_auto_header function informs the server that the replay accepts compressed data:

web_add_auto_header("Accept-Encoding", "gzip");

In the following example, custom headers are added for an application-specific log on.

web_add_auto_header("userid", "HTilney");  
web_add_auto_header("pwd", "northanger1803");  

The script includes this header information in all subsequent HTTP requests.