上传者: dreamfly88
|
上传时间: 2021-10-18 22:01:41
|
文件大小: 187KB
|
文件类型: DLL
C#版本发送http请求的dll,调用方法:
var client = new RestClient(url);
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AlwaysMultipartFormData = true;
request.AddParameter("format", "JSON");
request.AddParameter("param", param);
IRestResponse response = client.Execute(request);
logger.info("返回信息:{}",response.Content);