|
web_submit_data("reservations.pl_7",
"Action=http://localhost:1080/WebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/reservations.pl",
"Snapshot=t47.inf",
"Mode=HTTP",
ITEMDATA,
"Name=firstName", "Value=1", ENDITEM,
"Name=lastName", "Value=Marshall", ENDITEM,
"Name=address1", "Value=234 Willow Drive", ENDITEM,
"Name=address2", "Value=San Jose/CA/94085", ENDITEM,
"Name=pass1", "Value=Joseph Marshall", ENDITEM,
"Name=creditCard", "Value=12345678", ENDITEM,
"Name=expDate", "Value=07/10", ENDITEM,
"Name=oldCCOption", "Value=", ENDITEM,
"Name=numPassengers", "Value=1", ENDITEM,
"Name=seatType", "Value=Coach", ENDITEM,
"Name=seatPref", "Value=Aisle", ENDITEM,
"Name=outboundFlight", "Value=041;312;08/02/2011", ENDITEM,
"Name=advanceDiscount", "Value=0", ENDITEM,
"Name=returnFlight", "Value=", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=.cgifields", "Value=saveCC", ENDITEM,
"Name=buyFlights.x", "Value=17", ENDITEM,
"Name=buyFlights.y", "Value=7", ENDITEM,
LAST);
这个是用lr自带webtours录制的脚本中的一个函数,因为公司的网站在表单提交时会自动生成md5密文,所以想在ld中也用md5生成密文覆盖原来表单内容,但是不知道怎么替换,假如我要用GetMd5FromString("a")生成的密文作为上面"Name=firstName", "Value=1", ENDITEM中value的值输出,应该要怎么做?请问有人知道嘛?能不能帮我一下,谢谢大家啊 |
|