|
|
|
|
@ -352,7 +352,7 @@ namespace FactorySystemApi.Controllers
|
|
|
|
|
httpRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727)";
|
|
|
|
|
httpRequest.ContentType = "application/json";
|
|
|
|
|
httpRequest.Method = "post";
|
|
|
|
|
httpRequest.Headers.Add("mdmtoken", "ac9b7db8-9661-461d-b5b2-ed66f33a1d69");
|
|
|
|
|
httpRequest.Headers.Add("mdmtoken", AppSettingsHelper.GetAppSettingVal("Mdm_Token"));
|
|
|
|
|
httpRequest.Headers.Add("tenantid", "tenant");
|
|
|
|
|
Encoding encoding = Encoding.GetEncoding("utf-8");
|
|
|
|
|
byte[] bytesToPost = encoding.GetBytes(jObject);
|
|
|
|
|
|