开发者

Looking for C# HTTP Component/Class [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

开发者_C百科 Improve this question

I know HTTPRequest and Response are available, but I am looking for a HTTP component/class wrapper that I can plug straight into code with less hassle.

Are there any free or paid components/classes like this?


It's unclear to me what exactly you are trying to accomplish. I think you want to download URLs via HTTP protocol. If that's true, I doubt you'll find anything easier to use than the built-in System.Net.WebClient class since using it is a single line of code:

string html = new WebClient().DownloadString(url);
byte[] data = new WebClient().DownloadData(url);

If you need to display a Web page in a Windows Forms application, you can use the WebBrowser control.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜