Windows phone 使用Windows phone将Json数据发送到服务器

Windows phone 使用Windows phone将Json数据发送到服务器,windows-phone,json.net,jsonserializer,Windows Phone,Json.net,Jsonserializer,我希望以Json格式向web服务发送web请求中的数据Json,并从服务器获取结果。有很多方法p 请帮助我找到解决方案。您可以使用(例如)RestClient ftom 当我尝试显示响应contentlength时,结果为0 _restClient = new RestClient(); var request = new RestRequest(url) { Method = Method.POST }; request.AddHeader("content-type", "applicati

我希望以Json格式向web服务发送web请求中的数据Json,并从服务器获取结果。有很多方法p

请帮助我找到解决方案。

您可以使用(例如)RestClient ftom


当我尝试显示响应contentlength时,结果为0
_restClient = new RestClient();
var request = new RestRequest(url) { Method = Method.POST };
request.AddHeader("content-type", "application/json");
request.RequestFormat = DataFormat.Json;
request.AddParameter("json", YOUR_JSON, ParameterType.GetOrPost);
request.Timeout = DEFAULT_TIMEOUT;
_restClient.Timeout = Constants.DEFAULT_TIMEOUT;
_restClient.ExecuteAsync(request, response =>
{
           // check response here
});