|
我在测试登录,登录成功会设置cookie,如下代码
- web_reg_save_param_ex(
- "ParamName=temp",
- "LB=",
- "RB=",
- SEARCH_FILTERS,
- "Scope=HEADERS",
- "RequestUrl=http://www.ak222.com/login/login.login.do",
- "IgnoreRedirections=Yes",
- LAST);
- web_submit_data("login.login.do",
- "Action=http://www.ak222.com/login/login.login.do",
- "Method=POST",
- "RecContentType=text/html",
- "Referer=http://www.ak222.com/login/login.init.do?returnUrl=http%3A%2F%2Fv4.21tb.com%2Felos%2Fhtml%2Findex.init.do&elnScreen=1366*768elnScreen",
- "Snapshot=t7.inf",
- "Mode=HTML",
- ITEMDATA,
- "Name=returnUrl", "Value=http://www.ak222.com/elos/html/index.init.do", ENDITEM,
- "Name=corpCode", "Value=tangqing", ENDITEM,
- "Name=loginName", "Value={loginName}", ENDITEM,
- "Name=password", "Value={password}", ENDITEM,
- EXTRARES,
复制代码 设置cookie的操作是在http://www.ak222.com/login/login.login.do,但是成功后会做302跳转,跳转到http://www.ak222.com/login/login.init.do,导致我的web_reg_save_param_ex函数获取的是跳转后的响应信息,请问我如何获得跳转前的信息呢? |
|