开发者

passing cookie to my webbrowser

开发者 https://www.devze.com 2023-03-25 04:03 出处:网络
I m trying to develop an app for WP7 in Visual Studio 2010 in C#. I have a specific use case. I want to upload some photos to a website which hosts photos. First I launch the webbrowser to authenticat

I m trying to develop an app for WP7 in Visual Studio 2010 in C#. I have a specific use case. I want to upload some photos to a website which hosts photos. First I launch the webbrowser to authenticate once I get authenticated I select a particular picture and upload it. after that I m trying to launch the browser it should automatically login with the credentials passed earlier. I have tried some methods but did not work. So here is my requirement

1) I want to store the login credentials ente开发者_如何学编程red to my web browser using a cookie or a file.

2) I want to pass the same credentials to the webbrowser when its launched again after sometime.

Please help me to solve this issue.

Thanks in advance


Why don't you just keep your browser open? You can get the cookies using the GetCookies method, but it doesn't seem to be a way of setting them back.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号