1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Action()
{
int
HttpRetCode;
web_set_option(
"MaxRedirectionDepth"
,
"0"
, LAST );
//将允许的最大重定向次数设为0,即关闭重定向
web_url(
"baidu"
,
"URL=http://www.baidu.com/s?ie=utf-8&mod=2&cqid=c921e20b001d1515&pstg=3&istc=718&ver=RdBxHNYFOrXajezvoq4Vy39X202rWCuUCYO&chk=538e7c85&isid=393752D7BC443460&wd=javascript&rsv_bp=0&tn=baidu&rsv_spt=3&ie=utf-8&rsv_sug3=5&rsv_sug4=483&rsv_sug1=5&oq=javas&rsv_sug2=0&f=3&rsp=0&inputT=2137"
,
"Resource=0"
,
"RecContentType=text/html"
,
"Referer=http://www.baidu.com/#wd=javascript&rsv_bp=0&tn=baidu&rsv_spt=3&ie=utf-8&rsv_sug3=5&rsv_sug4=483&rsv_sug1=5&oq=javas&rsv_sug2=0&f=3&rsp=0&inputT=2137"
,
"Snapshot=t9.inf"
,
"Mode=HTML"
,
LAST);
HttpRetCode = web_get_int_property(HTTP_INFO_RETURN_CODE);
//获取Http状态码
lr_log_message(
"***HttpRetCode: %d"
, HttpRetCode);
//打印Http状态码
return
0;
}
|
*** walker的流水账 ***
本文转自walker snapshot博客51CTO博客,原文链接http://blog.51cto.com/walkerqt/1421824如需转载请自行联系原作者
RQSLT