[C#] 纯文本查看 复制代码
Shanqiu sq = new Shanqiu();
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "https://xxxxx.com/code?_=" + sq.GetTimeStampMsOF(),
Method = "GET",
};
Image img = http.GetImage(item);
pictureBox1.Image = img;
HttpResult result = http.GetHtml(item);
myCookie = result.Cookie;
[C#] 纯文本查看 复制代码
string u = txtUsername.Text.Trim();
string p = txtPassword.Text.Trim();
string v = txtValidate.Text.Trim();
string data = "type=1&account=" + u + "&password=" + p + "&code=" + v;
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "https://xxxx.com/login",
Method = "POST",
ContentType = "application/x-www-form-urlencoded",
PostEncoding = Encoding.UTF8,
Postdata = data,
Referer = "https://xxxx.com/login",
Cookie = myCookie,
};
Console.WriteLine(Encoding.UTF8);
HttpResult result = http.GetHtml(item);
string cookie = result.Cookie;
Console.WriteLine(result.Header);