.net - 从 .net 控制台应用程序调用 http url?

标签 .net url console-application

是否可以从 .net 控制台应用程序调用 http url?
任何人都可以给一个想法。?

最佳答案

public string DownloadUrl(string url)
{
    return new System.Net.WebClient().DownloadString(url);
}

关于.net - 从 .net 控制台应用程序调用 http url?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8441595/

相关文章:

c# - 直到右键单击才应用上下文菜单样式

c# - 文件 security.config.cch 对 CLR 有何作用?

c# - 设置字符串提示的默认值

jquery - Hash to hide div - 直接访问页面URL

c# - 什么构成了应用程序控制台或 Windows 窗体应用程序?

c# - 静态类必须派生自对象 (C#)

python - Django URL 跟踪其他文件 URL

html - 从 URL 渲染图像并可点击

c# - 用于与 Google map 交互的 Nuget 包

c# - .NET 控制台应用程序 (UTF-8) 中的越南字符