Created
June 13, 2020 20:53
-
-
Save marcelogrsp/f717209be90c52a60f3c08755f2e0b8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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