【发布时间】:2014-03-16 03:03:59
【问题描述】:
此代码适用于 Windows 窗体:
string URI = "http://localhost/1/index.php?dsa=232323";
string myParameters = "";
using (WebClient wc = new WebClient())
{
wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
string HtmlResult = wc.UploadString(URI, myParameters);
}
但我想从 windows phone 8 发送 http GET 请求。在 wp 8 中没有方法 UploadString() 等...
【问题讨论】:
-
你想发送
http GET但使用UploadString? -
UploadString 在 windows phone 8 中被删除方法
标签: c# windows-phone-8