Windows Phone POST client

联合创作 · 2023-09-29

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));

浏览 7
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报