loadrnner header函数

web_add_auto_header  -----向后续所有请求添加信息头

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

web_add_header   -----给下一个请求添加信息头

例:web_add_header("User-Agent", "Mercury Browser 1.0");

web_cleanup_auto_headers -----停止向后续所有请求添加消息头

例:web_cleanup_auto_headers();

web_remove_auto_header   -----停止向后续所有请求添加特定的消息头

例:web_remove_aoto_header("Accept-Encoding", "ImplicitGen=Yes", LAST);

web_save_header   -----保存消息头

例:web_save_header(RESPONSE,"response header");

猜你喜欢

转载自www.cnblogs.com/youyouyunduo/p/11829457.html
今日推荐