调用REST API时,我无法连接到远程服务器响应
var client = new RestClient { BaseUrl = new Uri(ConfigurationManager.AppSettings["WalletUrl"]) };
var hgh = ConfigurationManager.AppSettings["GetWalletRequest"];
var requests = new RestRequest(Method.POST)
{
RequestFormat = DataFormat.Json
};
requests.AddHeader("content-type", "application/json");
requests.AddParameter("application/json", req, ParameterType.RequestBody);
requests.AddBody(req);
var response = client.Execute(requests);