InternetGetCookie
[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern bool InternetGetCookie(
string lpszUrl,
string lpszCookieName,
StringBuilder lpszCookieData,
ref uint lpdwSize
);
Microsoft documentation: Link
Last updated