LoadRunner How to obtain Web request header information: request, RESPONSE (citation)

Source: Internet
Author: User

Discover LoadRunner today with two "built-in variables":

1, request, for extracting the complete header information.

2, RESPONSE, for extracting the complete response header information.

The response header information can be implemented in other ways, but the request header information is really not known to be able to get it. It's too discreet!

Note that these two variables are only used with Web_save_header registration before the request. Examples are as follows:

Action () {
Web_set_max_html_param_len ("262144"); //default maximum length is
Web_reg_save_param ("Responsebody", "lb=", "rb=", "Search=body", last);
Web_save_header (REQUEST, "Requestheader"); //Request is a built-in variable that holds the requested header information and needs to be registered before sending a URL request
Web_save_header (RESPONSE, "Responseheader"); //Response header information to save the response

Web_url ("Higkoo",
"Url=http://hi.baidu.com/higkoo",
"Resource=0",
"Reccontenttype=text/html",
"Mode=http",
last);

Lr_output_message ("# Request header information: \n%s", lr_eval_string ("{requestheader}"));
Lr_output_message ("# Response header information: \n%s", lr_eval_string ("{responseheader}"));
Lr_output_message ("# Response content Body: \n%s", lr_eval_string ("{responsebody}"));
}

LoadRunner How to obtain Web request header information: request, RESPONSE (citation)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.