Hello
I have smart client app which needs to access a "forms authentication"
protected website for certain functions. Thre credentials used to
logoin to
smart client arae the same as teh credentials used to logon to website.
Once the
user logs on to the client I do not want them to logon again into the
website.
I guess I have two options
a. Do a screen scraping capturing the view state of the login page and
establish the
session by storing the cookies.
b. Create a webservice to logon and store the cookies and then call the
urls from a webbrowser.
Option "b" was better and so I wouldl want to proceed in this
direction.
Since I would like to render html in a browser instantiated from the
smart client
I cannot use standard managed classes like webclient, webresponse etc
and need to depend
on unmanaged code using shdocvw and axwebbrowser.
Now the challenge is how do I pass cookies stored in a cookiecontainer
to the Navigate or Navigate2
methods as headers so that I can access a protected site and use the
same session.
Thanks
sd