【求助】关于webTour里退票的脚本
如下是我录制的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个呢?
求解!! 这个要用web_custom_request来做了 回复 2# 云层
试过了,URL格式的脚本如下:
Body=flightID=210297049-795-%0D%0A&flightID=210297416-1557-%0D%0A&flightID=210297790-2334-%0D%0A&.cgifields=1&.cgifields=3&.cgifields=2&removeAllFlights.x=50&removeAllFlights.y=9",
请问之后呢,我还是不明白如何根据实际情况随机生成这样的脚本,请云层赐教啊~~~ 我顶~~~求解啊大侠们~~
页:
[1]