How can I set "Content Encoding" (aka HTTP compression) in a BDL Script so that virtual users accept gzip or deflate data from the server?
This can be achieved either via the Active Profile settings, or by using the WebSetOption function in the script.
Using the WebSetOption function:
This will add an additional header to page requests (Accept-Encoding: gzip, deflate) which lets the server know that the client can cope with compressed data.
Active Profile Settings:
ACTIVE PROFILE | REPLAY | WEB | BROWSER Tab - CONTENT-ENCODING checkbox
However this active profile setting is only for the browser chosen in the Browser Tab, if you use the WebSetBrowser function then the Accept-Encoding will not be sent.