0
curl -H "Content-Type: application/json" -vX POST -d "[\"Channel1.Device1.tag1\"]" host_name/read
我需要將其轉換成restSharp代碼,
目前,我做的,
var client = new RestClient("host_name/read");
var request = new RestRequest(Method.POST);
IRestResponse response = client.Execute(request);
var content = response.Content; // raw content as string
我不知道如何解決這個-d
PARAM。