通过c#实现登录博客园,在线等,c#如何传递cookie值到url
放到 Headers 里试试(滑稽
HttpWebRequest httpRequest = (HttpWebRequest)HttpWebRequest.Create(url);
httpRequest.CookieContainer = cookie;
httpRequest.Referer = url;
httpRequest.UserAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36";
httpRequest.Accept = "application/json, text/javascript, */*; q=0.01";
httpRequest.ContentType = "application/json; charset=UTF-8";
httpRequest.Method = "GET";
httpRequest.Referer = "http://passport.cnblogs.com/user/signin?ReturnUrl=http%3A%2F%2Fwww.cnblogs.com%2F";
我是这样写的
@lazycat_1: GET方法么(逃