InternetGetCookie 错误 259 ERROR_NO_MORE_ITMES C++

InternetGetCookie error 259 ERROR_NO_MORE_ITMES c++

我必须 check/get 一个站点的 cookie,因为我不能,我总是遇到错误 259 ERROR_NO_MORE_ITEMS 使用 InternetGetCookies 函数

(例如:“http://www.google.fr”url 的 check/get cookie 没有 运行,我有错误 259。

wchar_t wchCookiesData[4096]; 
unsigned long ulCookiesDataLength = 0; 
bool bRet = InternetGetCookie(L"http://www.google.fr", NULL, out_pwchCookiesData, &ulCookiesDataLength ); 

这是我第一次测试的代码,InternetGetCookie 函数 return false (getlasterror() return 259)

InterentGetCookie 在哪里获取 cookie???我认为在 "C:\Users\username\AppData\Roaming\Microsoft\Windows" 中,但我这里没有 Cookies 文件夹。我可以在 "C:\Users\username\AppData\Local\Microsoft\Windows\INetCookies"

中看到一些 cookie

有人有解决办法吗??

谢谢

好的,我刚刚明白了我的问题,

您可以从 http 连接获取 cookie,但不能从 https 连接获取

任何人都知道如何从 https 连接获取 cookie(我的程序是 C++ 语言)

谢谢