How to print the cookie value
ATL / WTL / STL
1
Posts
1
Posters
0
Views
1
Watching
-
LPCSTR name="usrauth"; //name of the cookie TCHAR buffer [16384]; DWORD bufferSize = sizeof(buffer)/sizeof(buffer[0]); BOOL bRes = InternetGetCookieA(("http://www.mirracle.com"), name, (LPSTR)buffer, &bufferSize); MessageBox(NULL,buffer,NULL,MB_OK); This above code I am using to get the cookie value.But messagebox is not displaying the cookie value,it is displaying some garbage value.How to get the cookie value here?what is the mistake here