求且lr关联不到数据
脚本格式如下action()
{web_reg_save_param_ex(
"ParamName=newParam",
"LB/IC={",
"RB/IC=}",
"Ordinal=all",
"SaveLen=-1",
"DFEs=UrlEncoding",
SEARCHFILTERS,
"Scope=body",
LAST);
web_submit_data("default.aspx_2",
"Action=http://i.XXXXXX/_forms/default.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252F&Source=%2F",
"Method=POST",
"RecContentType=text/html",
"Referer=http://i.XXXXXX/_forms/default.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252F&Source=%2F",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=__LASTFOCUS", "Value=", ENDITEM,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE",
"Name=ctl00$PlaceHolderMain$signInControl$UserName", "Value=shaoqsxt", ENDITEM,
"Name=ctl00$PlaceHolderMain$signInControl$password", "Value=888888", ENDITEM,
"Name=ctl00$PlaceHolderMain$signInControl$bottom1", "Value=", ENDITEM,
"Name=__spText1", "Value=", ENDITEM,
"Name=__spText2", "Value=", ENDITEM,
EXTRARES,
...
Url=../_layouts/hntobacco/ExchangeService/GetScheduleList.aspx?name=icss&pwd=icss833", "Referer=http://i.XXXXXX/default_gl.aspx", ENDITEM,
LAST
}
需要关联的数据是在EXTRARES后面的请求中,返回的数据格式是json格式,这类数据怎么关联。小弟需要的是json数据中的其中一段。 :L研究了一下午,解决了。
页:
[1]