[C#] 纯文本查看 复制代码 HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "http://账户:密码@117.12.182.122:10110/ISAPI/Security/userCheck",//URL 必需项
Method = "get",//URL 可选项 默认为Get
IsToLower = false,//得到的HTML代码是否转成小写 可选项默认转小写
Cookie = "language=zh",//字符串Cookie 可选项
Referer = "http://117.12.182.122:10110/doc/page/login.asp?_1419925060596",//来源URL 可选项
ContentType = "application/x-www-form-urlencoded",//返回类型 可选项有默认值
};
item.Header.Add("Authorization", "Basic YWRtaW46MTIzNDU=");
item.Header.Add("X-Requested-With", "XMLHttpRequest");
HttpResult result = http.GetHtml(item);
string html = result.Html;
string cookie = result.Cookie;
|