var client = new RestClient("http://192.168.2.155:8899/user/getTroubleInfo");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/x-www-form-urlencoded");
request.AddParameter("application/x-www-form-urlencoded", "name=1#失控落棒1#&createtime=2024-01-02 11:24:04&time=&flag=1&path=1#CST-->LOCA-->稳压器水位1#-->稳压器压力-->电加热器热功率", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
C# 请求服务端方式2
最新推荐文章于 2024-05-03 22:03:36 发布