Last post Feb 14, 2008 12:36 PM by asphughes
Feb 12, 2008 11:13 AM|asphughes|LINK
Hi I have what I thought was a simple task but I can't seem to find on the web exactly how to do it
I want to log users from my Intranet onto a third party web site by calling an api and extracting some xml from the http header response.
Basically I pass the username and password to a url and extract a cookie from the http response xml.
Feb 14, 2008 06:30 AM|Zhao Ji Ma - MSFT|LINK
You can look at HttpWebResponse.Cookies property after the response returned.
Feb 14, 2008 12:36 PM|asphughes|LINK
Thanks, in the end I used the code below. Works fine except the response.redirect doesn't work. I guess its something to do with using webclient. Anyone know a workaround
client.Proxy = myProxy;
TextBox1.Text = s;
cookie = s.Substring(intStart,nEnd - intStart);