苏飞论坛
标题:
万能框架GET链接返回302
[打印本页]
作者:
a896351151
时间:
2015-11-21 09:17
标题:
万能框架GET链接返回302
我用GETget链接:
http://out.zhe800.com/ju/deal/huwaishuan_2051653 但是返回的HTML是302这个链接放浏览器,可以正确的跳转,是不是链接有特别的防护呢
//创建Httphelper对象
HttpHelper http = new HttpHelper();
//创建Httphelper参数对象
HttpItem item = new HttpItem()
{
URL = "
http://out.zhe800.com/ju/deal/huwaishuan_2051653
",//URL 必需项
Method = "get",//URL 可选项 默认为Get
ContentType = "text/html",//返回类型 可选项有默认值
//ContentType = "application/x-www-form-urlencoded",//返回类型 可选项有默认值
};
//请求的返回值对象
HttpResult result = http.GetHtml(item);
//获取请请求的Html
string html = result.Html;
作者:
helloword
时间:
2015-11-21 09:40
allowre。。。=true 设置自动跳转
作者:
Cheungnotes
时间:
2015-11-21 09:50
你是要跳转呢还是不跳转呢?
作者:
a896351151
时间:
2015-11-21 10:49
Cheungnotes 发表于 2015-11-21 09:50
你是要跳转呢还是不跳转呢?
我要跳转后的链接
作者:
站长苏飞
时间:
2015-11-21 17:48
http://www.sufeinet.com/thread-9999-1-1.html
这个有教程的
作者:
Cheungnotes
时间:
2015-11-22 11:23
a896351151 发表于 2015-11-21 10:49
我要跳转后的链接
allowre。。。=true 设置自动跳转
欢迎光临 苏飞论坛 (http://www.sufeinet.com/)
Powered by Discuz! X3.4