在ASP.NET VB中使用HTTPWebRequest [英] Using HTTPWebRequest in ASP.NET VB
本文介绍了在ASP.NET VB中使用HTTPWebRequest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道如何在.net中使用这个类。有谁想分享他的知识如何实现和使用这个类?
I don't have any idea how to use this class in .net. Anyone wants to share his knowledge how to implement and use this class?
你有没有任何简单的程序来调用页面并处理它?</ p>
Have you got any simple procedure that calls a page and process it?
推荐答案
Dim request = HttpWebRequest.Create("http://www.google.com")
Dim response = request.GetResponse()
Using reader = New StreamReader(response.GetResponseStream())
Console.WriteLine(reader.ReadToEnd())
End Using
这篇关于在ASP.NET VB中使用HTTPWebRequest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文