凤2鸡

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年5月29日

摘要: 添加引用using System.Runtime.InteropServices;声明useragent标志 private string userAgent = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)";添加API操作[DllImport("urlmon.dll", CharSet = CharSet.Ansi)]private static extern int UrlMkSetSessionOption(int dwOption, string 阅读全文
posted @ 2013-05-29 12:11 凤2鸡 阅读(1215) 评论(0) 推荐(0) 编辑