Windows Phone POST client
PostClient 是一个简单易用、线程安全的工具包,用于在 Windows Phone 7 平台上执行 HTTP POST 请求。
示例代码:
Dictionary<string, object> parameters = new Dictionary<string, object>();
parameters.Add("name", "Vangos");
parameters.Add("age", 23);
PostClient proxy = new PostClient(parameters);
proxy.DownloadStringCompleted += (sender, e) =>
{
if (e.Error == null)
{
//Process the result...
string data = e.Result;
}
};
proxy.DownloadStringAsync(new Uri("http://address.com/service", UriKind.Absolute));
评论