本帖最后由 wnhost 于 2015-1-31 13:04 编辑
发送
[C#] 纯文本查看 复制代码 HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = ClassFun.PUB_API_URL + "login",//URL这里都是测试URl 必需项
Encoding = null,//编码格式(utf-8,gb2312,gbk) 可选项 默认类会自动识别
//Encoding = Encoding.Default,
Method = "post",//URL 可选项 默认为Get
//Postdata = "u=" + usrname + "&p=" + usrpass + "&m=" + ClassFun.GetNetworkAdpaterID()
Postdata = string.Format("u={0}&p={1}&m={2}", usrname, usrpass, ClassFun.GetNetworkAdpaterID())
};
Console.WriteLine(item.Postdata);
//得到新的HTML代码
HttpResult result = http.GetHtml(item);
string html = result.Html;
接收
sUsrID = Trim(oRqt.f("u"))
sPass = Trim(oRqt.f("p"))
sMac = Trim(oRqt.f("m"))
但是都是空值
|