We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fca82e0 commit 0d1172bCopy full SHA for 0d1172b
articles/azure-monitor/logs/data-collector-api.md
@@ -364,6 +364,7 @@ namespace OIAPIExample
364
client.DefaultRequestHeaders.Add("x-ms-date", date);
365
client.DefaultRequestHeaders.Add("time-generated-field", TimeStampField);
366
367
+ // If charset=utf-8 is part of the content-type header, the API call may return forbidden.
368
System.Net.Http.HttpContent httpContent = new StringContent(json, Encoding.UTF8);
369
httpContent.Headers.ContentType = new MediaTypeHeaderValue("application/json");
370
Task<System.Net.Http.HttpResponseMessage> response = client.PostAsync(new Uri(url), httpContent);
0 commit comments