03 2018 档案

摘要:首先上个错误的版本。 1 public int SaveMany(List<Lotterys> dataList) 2 { 3 using (var db = base.NewDB()) 4 { 5 if (dataList.Count == 0) 6 return 0; 7 8 int count 阅读全文
posted @ 2018-03-23 11:28 Stupid_Bire 阅读(494) 评论(0) 推荐(0)
摘要:当使用HttpWebRequest进行访问时,结果提示为302重定向错误。 使用代码, 最终发现。是少加了CookieContainer...猜测是由于重定向时候第一个网页往头部添加了一个Cookie这个Cookie发送给重定向地址,所以必须带上CookieContainer。 阅读全文
posted @ 2018-03-21 10:27 Stupid_Bire 阅读(2184) 评论(0) 推荐(0)