PostClient是一个简单易用、线程安全的工具包,用于在WindowsPhone7平台上执行HTTPPOST请求。
示例代码:
Dictionary<string,object>parameters=newDictionary<string,object>();parameters.Add("name","Vangos");parameters.Add("age",23);PostClientproxy=newPostClient(parameters);proxy.DownloadStringCompleted+=(sender,e)=>{if(e.Error==null){//Processtheresult...stringdata=e.Result;}};proxy.DownloadStringAsync(newUri("https://address.com/service",UriKind.Absolute));
评论