|
5#
楼主 |
发表于 2007-1-4 23:15:52
|
只看该作者
改变了录制方式,重新录制,在 web_submit_data中可以提交,
不过只能用(2)的方式,这样就无法对整个提交的数据进行参数化
lr_save_string("Name=pass1\", \"Value=pass1","url");//(2)
//lr_save_string("Name=pass1\", \"Value=pass1\", ENDITEM,","url");//(3)
web_submit_data("reservations.pl_4",
"Action=http://localhost:1080/mercuryWebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:1080/mercuryWebTours/reservations.pl",
"Snapshot=t14.inf",
"Mode=HTTP",
ITEMDATA,
"Name=firstName", "Value=one", ENDITEM,
"Name=lastName", "Value=test", ENDITEM,
"Name=address1", "Value=", ENDITEM,
"Name=address2", "Value=", ENDITEM,
//"Name=pass1", "Value=one test", ENDITEM, //(1)
"{url}", ENDITEM, //(2)
// lr_eval_string("{url}"), //(3)
"Name=creditCard", "Value=", ENDITEM,
"Name=expDate", "Value=", ENDITEM,
"Name=oldCCOption", "Value=", ENDITEM,
"Name=numPassengers", "Value=2", ENDITEM,
"Name=seatType", "Value=Coach", ENDITEM,
"Name=seatPref", "Value=None", ENDITEM,
"Name=outboundFlight", "Value=030;251;01/05/2007", ENDITEM,
"Name=advanceDiscount", "Value=0", ENDITEM,
"Name=returnFlight", "Value=", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=.cgifields", "Value=saveCC", ENDITEM,
"Name=buyFlights.x", "Value=92", ENDITEM,
"Name=buyFlights.y", "Value=11", ENDITEM,
LAST);
[ 本帖最后由 huangcm 于 2007-1-4 23:27 编辑 ] |
|