May 8th, 2013, 04:22 AM
WinHttpAddRequestHeaders and Set-Cookie Funktion?
i try to send/set cookie to the page before i get status/request of them with:
WinHttpAddRequestHeaders( hRequest, _T("Set-Cookie: cookietest=ct; expires=Thu, 13-Feb-2014 09:19:31 GMT; path=/;\r\n"), -1L, WINHTTP_ADDREQ_FLAG_ADD & WINHTTP_ADDREQ_FLAG_REPLACE);
but something goes wrong and i cant find what, does any one knows how to send cookies to server "before" request a web page?
Thanks in advance
May 8th, 2013, 05:10 AM
Re: WinHttpAddRequestHeaders and Set-Cookie Funktion?
What exactly goes wrong? And what is your actual code? (please, use Code tags around code snippets!)
Originally Posted by break;
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!