摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/p/3284481.html]PostLogin :登录,并保存Cookie 1 public static string PostLogin(string postData, string requestUrlString, ref CookieContainer cookie) 2 { 3 ASCIIEncoding encoding = new ASCIIEncoding(); 4 byte[] data = encoding.GetBytes(po... 阅读全文
posted @ 2013-12-23 20:55 汉城 阅读(26690) 评论(0) 推荐(1) 编辑
摘要: HttpWebResponseresp;HttpWebRequestreq=(HttpWebRequest)HttpWebRequest.Create("http://www.csdn.net/Images/logo_csdn.gif");req.Timeout=150000;resp=(HttpWebResponse)req.GetResponse();System.Drawing.Imageimg;img=newSystem.Drawing.Bitmap(resp.GetResponseStream()); 阅读全文
posted @ 2013-12-23 10:33 汉城 阅读(214) 评论(0) 推荐(0) 编辑