做一个模拟登入的功能,
这个是网站地址 http://feedstuffs.com/login.aspx
ParametersBase.Container = new CookieContainer();
postData = "这里的内容怎么写?"
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] data = encoding.GetBytes(postData);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(loginUrl);
request.Method = "Post";
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = data.Length;
request.KeepAlive = true;
request.CookieContainer = ParametersBase.Container;
这个是网站地址 http://feedstuffs.com/login.aspx
ParametersBase.Container = new CookieContainer();
postData = "这里的内容怎么写?"
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] data = encoding.GetBytes(postData);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(loginUrl);
request.Method = "Post";
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = data.Length;
request.KeepAlive = true;
request.CookieContainer = ParametersBase.Container;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货