---该如何选择比较特殊的左右、边界
我想取下面图中的值,左右边界该如何选择呢? 用savelength+offset就可以了回复 2# 的帖子
云版:我取红框中的值:
web_reg_save_param("abc",
"LB/IC=",
"RB/IC=",
"Search=Body",
"Savelen=150",
// "SaveOffset=0",
LAST);
打印出来的是:
----------------0 11 0 ?????????
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://ww
与图中红框部分的值不一致 Action()
{
web_url("login.aspx",
"URL=http://192.168.3.13/nep/login.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_submit_data("login.aspx_2",
"Action=http://192.168.3.13/nep/login.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.3.13/nep/login.aspx",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value=/wEPDwULLTE1NTMwMTE1NzlkZFvp25SNei++OJoSZ5J24Q+ALjdr", ENDITEM,
"Name=__EVENTTARGET", "Value=btnLogin", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWAwLgoLK4BgKl1bKzCQK1qbSRC4A+Pat20HN3AOSBnoH3a7ehpxAt", ENDITEM,
"Name=txtUserName", "Value=admin", ENDITEM,
"Name=txtPassword", "Value=admin", ENDITEM,
LAST);
lr_think_time(5);
//取图中红框的值
web_reg_save_param("abc",
"LB/IC=",
"RB/IC=",
"Search=Body",
"Savelen=150",
// "SaveOffset=0",
LAST);
web_custom_request("iWebServer.aspx",
"URL=http://192.168.3.13/NEP/iWebServer.aspx",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=multipart/form-data; boundary=---------------------------1971102512e",
"Body=-----------------------------1971102512e",
LAST);
lr_output_message("%s",lr_eval_string("{abc}"));
web_custom_request("iWebServer.aspx_2",
"URL=http://192.168.3.13/NEP/iWebServer.aspx",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
"EncType=multipart/form-data; boundary=---------------------------1971102512e",
"Body=-----------------------------1971102512e",
LAST);
web_custom_request("iWebServer.aspx_3",
"URL=http://192.168.3.13/NEP/iWebServer.aspx",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTML",
"EncType=multipart/form-data; boundary=---------------------------1971102512e",
"Body=-----------------------------1971102512e",
LAST);
web_submit_data("FileUpload.aspx",
"Action=http://192.168.3.13/nep/FileUpload.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.3.13/nep/FileUpload.aspx",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value=/wEPDwUKLTcxMzc1NDMxN2RkLkdzqT1ie68rFGtHF7pwn8addFI=", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWBAKg76qiDAKct7iSDAKY84LIBALl2I/GC+3/SUM4zI3HKDEvAjkG5rfaO6Bq", ENDITEM,
"Name=btnSave", "Value=Button", ENDITEM,
"Name=hdFileName", "Value=新建.txt", ENDITEM,
"Name=hdFilePath", "Value=myfile/新建.txt", ENDITEM,
LAST);
return 0;
} 达人帮忙看看 "Search=Body",
改成: "Search=ALL",可以吗?
回复 6# 的帖子
Search=ALL之后HTTP/1.1 200 OK\r\nConnection: close\r\nDate: Thu, 03 Sep 2009 07:48:22 GMT\r\nServer: Microsoft-IIS/6.0\r\nX-Powered-By: ASP.NET\r\nX-AspNet-Version: 2.0.50727\r\nCache-Control: private\r\nContent-Type: text/html; charset=utf-8\r\nContent-Length: 565\r\n\r\n----------------0 11 0 ?????????\r\n\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
把Header截取出来,图中红框中的值也是没取到
回复 2# 的帖子
这是个组合键? 还是什么方法朋友能不能说的详细点回复 4# 的帖子
强:handshake :handshake :handshake
页:
[1]