C#???HttpHelper????????·????
???????????? ???????[ 2015/4/17 13:45:59 ] ????????C# HttpHelper ???
??????????????????????·??????????????????????????·????????????
????????????????·???????TP-LINK TD-W89841N??????????????????·??????д????
1 using CsharpHttpHelper; //????HttpHelper???
2 using System;
3 using System.Text;
4
5 namespace ConsoleApplication1
6 {
7 class Program
8 {
9 static void Main(string[] args)
10 {
11 HttpHelper http = new HttpHelper();
12 HttpItem item = new HttpItem()
13 {
14 Referer = "http://192.168.1.1/"??
15 //?????????
16 URL = "http://192.168.1.1/cgi?7"??
17 Method = "Post"??
18 Postdata = "[ACT_REBOOT#0??0??0??0??0??0#0??0??0??0??0??0]0??0
"??
19 //?????
??????
20 Cookie = "Authorization=Basic XXXXXXXXXXXXXXX=="??
21 //Authorization=Basic Base64???????????
22
23 };
24 HttpResult result = http.GetHtml(item);
25 if (result.StatusCode == System.Net.HttpStatusCode.OK)
26 {
27 if (result.Html == "[error]0")
28 {
29 Console.WriteLine("·????????????");
30 }
31 else
32 {
33 Console.WriteLine(result.Html);
34 }
35 }
36 Console.ReadKey();
37 }
38 }
39 }
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11