using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Web;
namespace AuthClient.com.authclient.utils
{
class IeCookieUtil
{
[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]
static extern bool InternetGetCookieEx(string pchURL, string pchCookieName, StringBuilder pchCookieData, ref System.UInt32 pcchCookieData, int dwFlags, IntPtr lpReserved);
[DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static extern bool InternetSetCookie(string lpszUrlName, string lbszCookieName, string lpszCookieData);
public static string getInfoByCookie(string type)
{
//string cookStr = "cbAccount=11111;systemAccountId=0;systemCode=aaa";
string cookSt
webbrowser设置cookie和获取cookie
最新推荐文章于 2025-04-02 14:00:59 发布