我要检查/获取一个网站的cookie,因为我不能,我总是得到错误259 ERROR_NO_MORE_ITEMS与InternetGetCookies功能
(例如:检查/获取“http://www.google.fr”的cookie不会运行,我有错误259。
wchar_t wchCookiesData[4096];
unsigned long ulCookiesDataLength = 0;
bool bRet = InternetGetCookie(L"http://www.google.fr", NULL, out_pwchCookiesData, &ulCookiesDataLength );
这是我的第一次测试的代码,而InternetGetCookie函数返回false(getlasterror()返回259)
InterentGetCookie获取cookie的地方???我想是在"C:\Users\username\AppData\Roaming\Microsoft\Windows"
,但在这里我没有Cookies文件夹。我可以在"C:\Users\username\AppData\Local\Microsoft\Windows\INetCookies"
任何人都有解决方案吗?
由于
答案 0 :(得分:0)
好的,我刚刚理解了我的问题,
您可以从http连接获取cookie,但不能从https连接获取
任何人都知道如何从https连接获取cookie(我的程序是用C ++语言编写的)
由于