c# - 如何: HTTP GET and POST request with parameters in Win 8 modern app using C# and XAML

标签 c# httpwebrequest microsoft-metro windows-runtime winrt-xaml

我在 C# .Net 控制台应用程序中使用以下代码来发出 HTTP get 和 POST 请求。我们如何使用 C# 和 XAML 在 Win 8 现代应用程序中执行此操作?

System.Net.HttpWebRequest req = (HttpWebRequest)System.Net.WebRequest.Create(URI);
System.Net.WebResponse resp = req.GetResponse();

最佳答案

你可以这样做MSDN Sample

关于c# - 如何: HTTP GET and POST request with parameters in Win 8 modern app using C# and XAML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12286192/

相关文章:

javascript - WinJS UI JS/HTML 控件可以在 Metro 之外使用吗

c# - 选择工作簿 Excel 已使用按钮单击方法打开

c# - C# 的 TripleDES IV?

asp.net - asp.net 页面如何知道哪个按钮触发了回发?

c# - 远程服务器返回错误 : (407) Proxy Authentication Required

JavaScript 运行时错误 : Unable to add dynamic content

javascript - 在 Windows 8 Metro 的 javascript 中使用图像作为超链接

c# - MVC 减少重复代码

c# - WatiN:需要查找浏览器中显示的 SSRS 报告的 div 中包含的值

c# - 从 iCloud API 获取联系人列表