Skip to content

Instantly share code, notes, and snippets.

@marcelogrsp
Created June 13, 2020 20:53
Show Gist options
  • Save marcelogrsp/f717209be90c52a60f3c08755f2e0b8c to your computer and use it in GitHub Desktop.
Save marcelogrsp/f717209be90c52a60f3c08755f2e0b8c to your computer and use it in GitHub Desktop.
Sub request()
Dim request As HttpWebRequest = HttpWebRequest.Create("https://www.python.org/ftp/python/3.8.3/python-3.8.3-amd64.exe")
request.Proxy = Nothing
Dim response As HttpWebResponse = request.GetResponse
Dim responseStream As System.IO.Stream = response.GetResponseStream
Dim streamReader As New System.IO.StreamReader(responseStream)
Dim data As String = streamReader.ReadToEnd
streamReader.Close()
Debug.Print(data)
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment