Results comments of Milen

I've been using HttpClient solved ``` public async Task Post(string url, HttpContent content, Dictionary requestHeaders = null) { try { Log.Write(new { Url = url }); var httpRequestMessage = new...

@davidsh yes,HttpWebRequest with HTTP/1.0 doesn't work

@davidsh .NET Core 2.0 for win 10, the solution is visual studio default template project. you can copy HttpWebRequest ProtocolVersion Sample Tests >https://docs.microsoft.com/zh-cn/dotnet/api/system.net.httpwebrequest.protocolversion?view=netcore-2.0#System_Net_HttpWebRequest_ProtocolVersion ``` // Create a new 'HttpWebRequest' Object...

@davidsh i don't use proxy ,But it does is automatically added,the are Request Header ``` public class Http { private readonly HttpClient httpClient; private HttpClientHandler httpClientHandler; public Http(Uri proxyAddrss =...

@davidsh I found the instructions here, but are not sure whether the code here https://github.com/dotnet/corefx/blob/c082d21361608e3cc2ea3cddd90c2a0306828002/src/System.Net.Http/src/System/Net/Http/DiagnosticsHandler.cs > request.Headers.Add(DiagnosticsHandlerLoggingStrings.RequestIdHeaderName, currentActivity.Id); https://github.com/dotnet/corefx/blob/e1c2b4d66daf0482c97562eb0250fde4ed558a98/src/System.Diagnostics.DiagnosticSource/src/HttpCorrelationProtocol.md

@davidsh var result=HttpClient.SendAsync(httpRequestMessage); The Debug Info ## Send before >httpRequestMessage.Headers.ToString() ``` Connection: keep-alive Accept: text/html, */* Host: domain.com User-Agent: Mozilla/3.0 (compatible; Indy Library) ``` ## Send After >result.RequestMessage.Headers.ToString() ``` Connection:...

Does not appear when published Customer HttpHeader (x-ms-* header)

`public string GetGraphic(Size viewBox, string darkColorHex, string lightColorHex, bool drawQuietZones = false)` `{` `StringBuilder svgFile = new StringBuilder($@"");` `int unitsPerModule = (int)Math.Floor(Convert.ToDouble(Math.Min(viewBox.Width, viewBox.Height)) / qrCodeData.ModuleMatrix.Count);` `var size = (qrCodeData.ModuleMatrix.Count -...

Use in IoT devices, which is the advantage of MQTT