Hello, I will try to be as clear as I can be. I'm sure this question has been asked but I can't find a suitable answer for this particular situation.
I need to be able to redirect the browser to a new 3rd party page while at the same time supplying a cookie required for some form of authentication on the 3rd party site.
I have managed to get this to work in the following manner:
'SessionID is predetermined by another HttpWebRequest/Response
Dim sessionCookie As New Cookie("ezproxy", sessionID.Substring(1), "/", ".someother.site")
Dim CookieJar As New CookieContainer
rRequest = HttpWebRequest.Create("where I want to go")
rRequest.CookieContainer = CookieJar
rRequest.Method = "GET"
'Make the request and get the response.
rResponse = rRequest.GetResponse()
If (rResponse.Cookies.Count <> 0) Then
For Each cook
View Complete Post