Phenomena: If you use the following statements to debug the value of SessionID, the SessionID value will be null in the Execution Log after the script is played back.
lr_output_message(lr_eval_string("SessionID-------->"));
lr_output_message(lr_eval_string("{SessionID}"));Solution: The function (as follows)
web_reg_save_param("SessionID","LB=ID =","RB=\r\n",LAST);to obtain Session ID should be placed before the second HTTP request. Do not place it before the first request.
web_custom_request("AXDispatcher.aspx_2", "URL=http://172.17.1.29/servlet/ AXDispa
tcher",
"Method=POST",
"Resource=1",
"RecContentType=text/plain",
"Referer=",
"Binary=1",
"EncType=",
"Body="
"\\x1F\\x8B\\x08\\x00\\x00\\x00\\x00\\x00\\x00\\x0B"
"SPf`"
"\\xD0"
"cHd("
"\\x00\\xC2"
"T"
"\\x86"
"|"
"\\x86"
"<"
"\\x86"
"x"
"\\x86"
"d "
"\\x9D\\x02\\xE4\\xC5\\x03"
"q"
"\\x05"
"P."
"\\x17"
"("
"\\x97\\x03"
"d"
"\\x17\\x03"
"E"
"\\x12\\x81"
"\""
"\\x8C\\x0C"
"@"
"\\xC0\\x02\\xC4"
"L"
"\\x0C\\x00\\x9D\\x84\\xA2\\xD6"
"?"
"\\x00\\x00\\x00"
"",
LAST);


