51Testing软件测试论坛

标题: LoadRunner:Http content compression [打印本页]

作者: pcl2004_27    时间: 2006-10-25 14:17
标题: LoadRunner:Http content compression
Description

      Use web_add_auto_header to intitiate http compression from Apache webserver with mod_gzip compression plug-in.


Solution

      Testing an application which uses Apache webserver with mod_gzip http compression plug-in. Client browser is http1.1 compliant.

Found that the following command adds the correct header to all http requests:

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

Causing the following response:

321-byte response headers for "https://companyxxx.co.uk/index.jsp" (RelFrameId=1)
Action1.c(16): HTTP/1.0 200 OK\r\n
Action1.c(16): Date: Wed, 23 Jan 2002 15:43:59 GMT\r\n
Action1.c(16): Server: Apache/1.3.22 (Win32) mod_gzip/1.3.19.1a Resin/1.2 mod_ssl/2.8.5 OpenSSL/0.9.6b\r\n
Action1.c(16): Cache-Control: private\r\n
Action1.c(16): Set-Cookie: JSESSIONID=aaa99999999HusTm8-PoYxfwcaiAcT;Path=/\r\n
Action1.c(16): Connection: close\r\n
Action1.c(16): Content-Type: text/html\r\n
Action1.c(16): Content-Encoding: gzip\r\n




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2