110,534
社区成员
发帖
与我相关
我的任务
分享
string url = "https://passport.csdn.net/account/login";
WebClient wc = new WebClient();
NameValueCollection nvc = new NameValueCollection();
nvc.Add("login_name", "用户");
nvc.Add("password", "密码");
byte[] responseArray = wc.UploadValues(url, "POST", nvc);
string content = Encoding.GetEncoding("UTF-8").GetString(responseArray);
Response.Redirect("http://www.csdn.net/");