Hi i have a login page, i use HttpWebResponse to POST username and pass to the login page, the login is successfull and i also get the JSESSIONID (as it is java servlets).
Next i use the same session id to navigate to other page which is also done.
The problem is i need to download an image from the server using the same session id but i am unable to do d same.
If i open the login page in a browser login and then copy and paste the image url including the session id the image is downloded, but i cannot achive this using HttpWebResponse.
Here is d code:-
Dim request As HttpWebRequest
Dim responseR As HttpWebResponse
request = WebRequest.Create("https://someurl/Login.do")
Dim cookieJar As New CookieContainer
request.CookieContainer = cookieJar
request.ContentType = "application/x-www-form-urlencoded"
request.UserAgent = "Mozilla/5 ...
Go to the complete details ...