WebClient WbClient = new WebClient();
WbClient.Credentials = new System.Net.NetworkCredential(username,password);
WbClient.Proxy = null;
WbClient.Headers.Add("CIMOperation", "MethodCall");
WbClient.Headers.Add("CIMMethod", "EnumerateInstances");
WbClient.Headers.Add("CIMObject", var1);
WbClient.Headers.Add("Content-Type", "application/xml");
string res = WbClient.UploadString(new Uri(url),"POST",var2);
url
类似http:// 12.144.15.15:2344
,var2
是proper xml
。服务器在10分钟后返回null。这是什么意思?
答案 0 :(得分:0)