Search code examples
javascriptjquerywindows-desktop-gadgets

Logging into a website from a Windows Desktop Gadget


I'm developing a Windows Desktop Gadget. From within the gadget, I have to login to an external website, get a response from a specific page and display required information from it.

I have implemented the request using jQuery's $.post(). First, I send the post parameters to the application and it receives a 302 response. After that, when I send subsequent jQuery $.get() requests to other pages, it is not posting the required cookies.

How can I resolve this?


Solution

  • Check this tute on using cookies with windows gadgets..

    http://blogs.msdn.com/b/jaimer/archive/2006/09/28/making-rest-calls-and-using-session-state-from-a-sidebar-gadget_2e00_2e00_2e00_.aspx