|
char *v, *v2, *v3;
v = lr_eval_string("REQUESTDS");
v2 = GetMd5FromString(v);
web_submit_data("reservations.pl_8",
"Action=http://localhost:1080/WebTours/reservations.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost:1080/WebTours/reservations.pl",
"Snapshot=t48.inf",
"Mode=HTTP",
ITEMDATA,
"Name=firstName", "Value=1", ENDITEM,
"Name=lastName", v2, ENDITEM, //这里本来是"Name=lastName", "Value=123", 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);
想问下这样改为什么不行,运行后报错,而且出现乱码:
Action.c(488): Error -27225: The "?r?r#<r?r?r#<r?ry1r#<ri1rZ1r#<rM1rA1r#<r01r)1r#<r?r?r#<r?r?r#<r?r?r#<r?r?r#<rn4rf4r#<r1r)1r#<r?r?r#<r?r
1r#<r?r?r#<r?rH2r#<r$ArUUUU???" argument (number 13) is not recognized within "ITEMDATA" [MsgId: MERR-27225]
Action.c(488): web_submit_data("reservations.pl_7") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388] |
|