How to retrieve a webpage and diplay the html to the console with C# ?
相关问题
- Angular RxJS mergeMap types
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
Use the
System.Net.WebClient
class.I have knocked up an example:
Here is another option, using the WebClient this time and do it asynchronously:
The second option is handy as it will not block the UI Thread, giving a better experience.