[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]
        public static extern bool InternetSetCookie(string lpszUrlName, string lbszCookieName, string lpszCookieData);

        private void button1_Click(object sender, EventArgs e)
        {
            var url = "http://n.eduyun.cn/index.php?r=portal/site/index";
            InternetSetCookie(url, "Token", "value=HuangHaiWriting; expires=Thu, 01-Jan-2020 00:00:01 GMT");
            System.Diagnostics.Process.Start("iexplore", url);
            MessageBox.Show("ok!");
        }

 

相关文章:

  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-18
  • 2021-07-12
  • 2021-12-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
相关资源
相似解决方案