locked
How can I send cookies in my Windows Store app using JavaScript?

    Question

  • The case is that I am writing an app using HTML5/JavaScript which needs to log into a web form and receive the cookie. Now I want to interact with the web server, but I don't know how to send the received cookies. I want to use the postAsync() method but I just don't know what to do. Can anybody help me?
    • Edited by _bug_ Monday, December 2, 2013 2:03 PM
    Monday, December 2, 2013 2:01 PM

Answers

  • Hi bug,

    Your idea is kind of correct, to use HttpClient.PostAsync() is a good choice, the code sample can be found here:http://code.msdn.microsoft.com/windowsapps/HttpClient-sample-55700664

    Hope this can help you and best regards,

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by _bug_ Wednesday, December 4, 2013 2:39 AM
    Tuesday, December 3, 2013 7:02 AM
    Moderator