WinHttpAddRequestHeaders and Set-Cookie Funktion?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: WinHttpAddRequestHeaders and Set-Cookie Funktion?

  1. #1
    Join Date
    Jun 2006
    Location
    Germany
    Posts
    103

    WinHttpAddRequestHeaders and Set-Cookie Funktion?

    Hi,
    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
    break

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,360

    Re: WinHttpAddRequestHeaders and Set-Cookie Funktion?

    Quote Originally Posted by break; View Post
    ...
    but something goes wrong and i cant find what, does any one knows how to send cookies to server "before" request a web page?
    What exactly goes wrong? And what is your actual code? (please, use Code tags around code snippets!)
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center