Windows Phone POST client
PostClient 是一個簡單易用、線程安全的工具包,用于在 Windows Phone 7 平臺上執(zhí)行 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));
評論
圖片
表情
