如何发送数据以验证服务器?使用当前代码:
var client = new RestClient("http://myserver.com");
var request = new RestRequest("login", Method.POST);
request.AddParameter("email", "myemail", ParameterType.GetOrPost);
request.AddParameter("pass", "mypassword", ParameterType.GetOrPost);
request.AddParameter("token", "mytoken", ParameterType.GetOrPost);
client.ExecuteAsync(request, (response) =>
{
var auth = response.Content.ToString();
});
在此代码之后,如果程序嗅探器(HttpAnalyzer)查看Headers和Response Content,将在响应内容中写入:Request is not completed. waiting ...
,响应标头将为空...如何发布帖子RestSharp?