在VB.net中发布http get的最佳方法是什么?我想得到像
这样的请求的结果http://89.36.220.56/api.php?photo=urlphoto&point=numberlikes&socks=proxy
答案 0 :(得分:-1)
Dim url = "http://89.36.220.56/api.php?photo=urlphoto&point=numberlikes&socks=proxy"
Dim request = DirectCast(WebRequest.Create(url), HttpWebRequest)
Dim response = request.GetResponse()
Dim receiveStream As Stream = response.GetResponseStream()
Dim readStream As New StreamReader(receiveStream, Encoding.UTF8)
Dim data = readStream.ReadToEnd()
response.Close()
readStream.Close()