赞
踩
Dim request As WebRequest = WebRequest.Create("https://docs.microsoft.com")
request.Credentials = CredentialCache.DefaultCredentials
Dim response As WebResponse = request.GetResponse()
Console.WriteLine((CType(response, HttpWebResponse)).StatusDescription)
Using dataStream As Stream = response.GetResponseStream()
Dim reader As StreamReader = New StreamReader(dataStream)
Dim responseFromServer As String = reader.ReadToEnd()
Console.WriteLine(responseFromServer)
End Using
response.Close()
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。