We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Dim CookieJar = New CookieContainer Dim httpRequest As HttpWebRequest Dim httpResponse As HttpWebResponse Dim responseStream As Stream Dim responseEncoding As Encoding Dim responseStreamReader As StreamReader Dim strResponse1 As String = "" CookieJar = New CookieContainer httpRequest = CType(WebRequest.Create("https://www.google.com/accounts/ServiceLogin?service=mail"), HttpWebRequest) httpRequest.Timeout = 5 * 10000 httpRequest.AllowAutoRedirect = True httpRequest.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" httpRequest.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:184.108.40.206) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)" httpRequest.KeepAlive = True httpRequest.CookieContainer = CookieJar httpResponse = CType(httpRequest.GetResponse(), HttpWebResponse) responseStream = httpResponse.GetResponseStream() responseEncoding = System.Text.Encoding.GetEncoding("utf-8") responseStreamReader = New StreamReader(responseStream, responseEncoding) If Not responseStreamReader Is Nothing Then strResponse1 = responseStreamReader.ReadToEnd End If
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.