在以下代码下运行时获取内部服务器错误作为响应 代码行-
string URL = "http://test/test/test";
var client = new RestClient(URL);
client.Authenticator =新的NtlmAuthenticator();
var request = new RestRequest(Method.POST); //选择Rest API方法类型
request.AddHeader(“ content-type”,“ application / json”);
request.AddParameter(“ application / json”,“ {'Metadata':[
{'Key':'BatchId','Value':'80720'},'Document':[82]}“,ParameterType.RequestBody);
IRestResponse响应= client.Execute(request);