Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

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?

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:

WebSetOption(WEB_OPT_ENABLE_CONTENT_ENCODING, 1);

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.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:00
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.