|
如下是我录制的
web_submit_data("itinerary.pl",
"Action=http://127.0.0.1:1080/WebTours/itinerary.pl",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/itinerary.pl",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=flightID", "Value=210296680-798-\r\n", ENDITEM,
"Name=flightID", "Value=210297049-1564-\r\n", ENDITEM,
"Name=flightID", "Value=210297416-2327-\r\n", ENDITEM,
"Name=flightID", "Value=210297790-3103-\r\n", ENDITEM,
"Name=.cgifields", "Value=4", ENDITEM,
"Name=.cgifields", "Value=1", ENDITEM,
"Name=.cgifields", "Value=3", ENDITEM,
"Name=.cgifields", "Value=2", ENDITEM,
"Name=removeAllFlights.x", "Value=25", ENDITEM,
"Name=removeAllFlights.y", "Value=13", ENDITEM,
LAST);
如果要用于多个用户呢?每个用户里面的flight是不定的,如果是从response里抽取参数,这个都还好说,但是如何形成随机的脚本代码呢?
比如上面这个是4个flightID,但是如果是5个呢?
求解!! |
|