Windows Phone POST client -


MS-PL
Windows Phone/Mobile
C#

软件简介

PostClient 是一个简单易用、线程安全的工具包,用于在 Windows Phone 7 平台上执行 HTTP POST 请求。

示例代码:

Dictionary parameters = new Dictionary();
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));