脚本中如何获得页面隐藏控件中值的问题
机制大致如下:由上一页面跳转到checkstep.aspx时,同时对服务器插入一条记录,记录中含有的payno和checkstep.aspx源代码中的ctl00$MainBody$HFPayNO一致就可进行提交但录制结果是获得不到get信息,只有提交checkstep.aspx时post信息
Action()
{
// web_add_cookie("OrderPayNo=2010010700033; DOMAIN=test10.dazhe.cn");
web_url("checkstep.aspx",
"URL=http://test10.dazhe.cn/checkstep.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t212.inf",
"Mode=HTTP",
LAST);
web_custom_request("checkstep.aspx_2",
"URL=http://test10.dazhe.cn/checkstep.aspx",
"Method=POST",
"Resource=0",
"RecContentType=text/plain",
"Referer=http://test10.dazhe.cn/checkstep.aspx",
"Snapshot=t217.inf",
"Mode=HTTP",
"EncType=application/x-www-form-urlencoded; charset=utf-8",
"Body=ctl00%24MainBody%24ScriptManager1=ctl00%24MainBody%24UpdatePanelTop%7Cctl00%24MainBody%24ImgOrderSubmit&__EVENTTARGET=&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE="
"%2FwEPDwULLTE0MjI2MDg3MTUPZBYCZg9kFgQCAQ9kFgJmD2QWAgIBDxYCHgRUZXh0BZIGPHRpdGxlPuWQjeWTgeaJk%2BaKmOe9kSzkuK3lm73pppblrrbnvZHkuIrnmb7otKfllYbln44s5aWl54m56I6x5pav77yM55m%2B6LSn5ZOB54mM77yM5q2j5ZOB5L%2Bd6K%2BB77yMN%2BWkqeaXoOeQhueUsemAgOaNoui0pzwvdGl0bGU%2BPE1FVEEgY29udGVudD0i5ZCN5ZOB5omT5oqY572R77yIZGF6aGUuY27vvInvvJrkubA1MOmAgTUw77yM5aSn5Z6L5L%2BD6ZSA6L%2Bb6KGM5Lit77yM572R5LiK55m%2B6LSn5ZWG5bqX77yM572R5LiK6LSt54mp77yM6LaF5L2O5oqY5omj77yM55%2Bl5ZCN5ZOB54mM77yM5Y6C5a6255u06ZSA77yM6ZmQ5pe254m55Lu377yM"
"5ZOB6LSo5om%2F6K%2B677yM5pu05L2O5Lu35qC877yM6K6y5L%2Bh6KqJ6YCA6LSn5pyJ5L%2Bd6Zqc77yM5byA5Y%2BR56Wo6LSt54mp5peg6aOO6Zmp77yM5YWN6LS56YCB6LSn77yM6LSn5Yiw5LuY5qy%2B77yM5pSv5LuY5a6d5L%2Bh5Lu75ZWG5a6244CC6K6i6LSt54Ot57q%2FNDAwODIwMjAwMOOAgueUqOm8oOagh%2BmAm%2BeZvui0p%2BWVhuW6l%2B%2B8jOaWueS%2Bv%2BWunuaDoOmAgeS4iumXqO%2B8jOe9keS4iui0reeJqeaWsOeUn%2Ba0u%2BOAgnd3dy5kYXpoZS5jbiIgbmFtZT1kZXNjcmlwdGlvbj48TUVUQSBjb250ZW50PeWQjeWTgeaJk%2BaKmO%2B8jOWQjeWTgeaKmOaJo%2B%2B8jOWQjeWTge%2B8jGRhemhl77yM5omT5oqY572R77yM"
"UgY3RsMDAkTWFpbkJvZHkkSW1nRGlzY291bnRDYW5jZWwFFWN0bDAwJE1haW5Cb2R5JGltZ1VzZQUdY3RsMDAkTWFpbkJvZHkkSW1nUG9pbnRDYW5jZWwFHmN0bDAwJE1haW5Cb2R5JEltZ0FjY291bnRNb25leQUkY3RsMDAkTWFpbkJvZHkkSW1nQWNjb3VudE1vbmV5Q2FuY2VsBR1jdGwwMCRNYWluQm9keSRJbWdPcmRlclN1Ym1pdA%3D%3D&__SCROLLPOSITIONX=0&__SCROLLPOSITIONY=0&ctl00%24MainNav%24SearchControl1%24ddlType=00000000-0000-0000-0000-000000000000&ctl00%24MainNav%24SearchControl1%24txtKeyWord="
"%20%20%E7%99%BE%E8%B4%A7%E5%93%81%E7%89%8C%2C%E6%AD%A3%E5%93%81%E4%BD%8E%E4%BB%B7%2C%E9%A6%96%E5%AE%B6%E7%BD%91%E4%B8%8A%E7%99%BE%E8%B4%A7%E5%95%86%E5%9C%BA&ctl00%24MainBody%24controlname=&ctl00%24MainBody%24drpDelivery=b8fad5cf-0f78-4e33-ad65-82dd9ff13fa4&ctl00%24MainBody%24txtName=11&ctl00%24MainBody%24txtRecieveName=1&ctl00%24MainBody%24txtContactName=1&ctl00%24MainBody%24ddlLocOne=310000&ctl00%24MainBody%24ddlLocTwo=310100&ctl00%24MainBody%24ddlLocThree=310101&ctl00%24MainBody%24txtAddress=1&"
"ctl00%24MainBody%24txtZipCode=1%20%20%20%20%20&ctl00%24MainBody%24txtTelephone=1&ctl00%24MainBody%24txtMobile=1&ctl00%24MainBody%24radbutPayType=rb1&ctl00%24MainBody%24txtDisCountPass=0&ctl00%24MainBody%24txtSendPoint=0&ctl00%24MainBody%24txtCompare=&ctl00%24MainBody%24txtAccountMoney=0&ctl00%24MainBody%24txtLeaveWord=&ctl00%24MainBody%24HFPayNO=2010010700034&ctl00%24MainBody%24HFPayID=083bee87-aa7c-4995-84c3-44a003e7fff5&__ASYNCPOST=true&ctl00%24MainBody%24ImgOrderSubmit.x=63&"
"ctl00%24MainBody%24ImgOrderSubmit.y=24",
LAST);
web_url("PayTransfer.aspx",
"URL=http://test10.dazhe.cn/PayTransfer.aspx?OrderID=2010010700034",
"Resource=0",
"RecContentType=text/html",
"Referer=http://test10.dazhe.cn/checkstep.aspx",
"Snapshot=t218.inf",
"Mode=HTTP",
LAST);
return 0;
}
请问能否对ctl00$MainBody$HFPayNO做关联?
如果把payno的值在cookie中显示了能否做关联?
还是该机制使得无法关联?
页:
[1]