C# login with cookie and fiddler2

2020-12-13 15:17

阅读:353

标签:blog   http   ar   os   sp   div   on   log   bs   

http://blog.codeblack.nl/post/HttpWebRequest-HttpWebResponse-and-cookies.aspx

 

CookieContainer cookieContainer = new CookieContainer();
 
HttpWebRequest firstRequest = (HttpWebRequest)HttpWebRequest.Create(url);
request.CookieContainer = cookieContainer;
 
HttpWebResponse firstResponse = (HttpWebResponse)firstRequest.GetResponse();
 
HttpWebRequest secondRequest = (HttpWebRequest)HttpWebRequest.Create(url);
request.CookieContainer = cookieContainer;
 
HttpWebResponse secondResponse = (HttpWebResponse)secondRequest .GetResponse();

C# login with cookie and fiddler2

标签:blog   http   ar   os   sp   div   on   log   bs   

原文地址:http://www.cnblogs.com/webglcn/p/4073990.html


评论


亲,登录后才可以留言!