|
1金钱
string url = "http://192.168.1.1/userRpm/SysRebootRpm.htm?Reboot=%D6%D8%C6%F4%C2%B7%D3%C9%C6%F7";
Uri uri = new Uri(url);
var cache = new CredentialCache();
cache.Add(uri, "Basic", new NetworkCredential("admin","admin"));
DotNet4.Utilities.HttpItem item = new DotNet4.Utilities.HttpItem
{
URL = url,
Host = "192.168.1.1",
Referer = "http://192.168.1.1/userRpm/SysRebootRpm.htm",
ContentType = "text/html;charset=gb2312",
Cookie = "Authorization: Basic YWRtaW46YWRtaW50aGo=",
ICredentials = cache
};
DotNet4.Utilities.HttpHelper http = new DotNet4.Utilities.HttpHelper();
DotNet4.Utilities.HttpResult html = http.GetHtml(item);
*/
|
|