-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
38 lines (31 loc) · 934 Bytes
/
Program.cs
File metadata and controls
38 lines (31 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Web;
using System.IO;
using System.Threading;
using TJ;
namespace thief
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入学号密码");
String username = Console.ReadLine();
String password = Console.ReadLine();
CookieContainer cookie = new CookieContainer();
if ((cookie = TJLogin.LoginXuanke(username, password)) == null)
{
Console.WriteLine("登陆失败");
}
else
{
Console.WriteLine("登陆成功");
}
String Content = TJLogin.GetWebContent(cookie, "http://xuanke.tongji.edu.cn/tj_login/index_main.jsp");
Console.WriteLine(Content);
}
}
}