Refers to the System.
can I set a custom User Agent for a HttpClient? I need to view websites in their mobile form.
c# dotnet-httpclientWe are trying to implement user-determined (on a settings screen) optional gzip compression in our client which uses HttpClient, so …
c# gzip .net-4.5 dotnet-httpclient winrt-asyncGiven the following code: var cts = new CancellationTokenSource(); try { // get a "hot" task var task = new HttpClient().GetAsync("http://www.…
c# .net async-await dotnet-httpclient cancellationtokensourceI have a .NET 4.6.2 console application (using Simple Injector). I need to make calls to an HTTP service. Having run …
.net-core dotnet-httpclientI am posting a string to a web server this way: private async Task makeRequest(string url, string postData) { HttpClient …
c# windows-phone-8 internal-server-error dotnet-httpclient asynchttpclientI am doing an Asp.Net MVC 4 project and am looking to an internal request (like a proxy) to our …
c# asp.net-mvc-4 formcollection dotnet-httpclientI am using System.Net.Http's HttpClient to call a REST API with "POST" using the following code: using (HttpRequestMessage …
c# json serialization httpclient dotnet-httpclientI am using the System.Net.Http.HttpClient to do some client-side HTTP communication. I've got all of the HTTP …
c# .net stream idisposable dotnet-httpclientI am using my client to get some info about a certain file stored in my Swift Object Storage which …
.net rest dotnet-httpclientIs there anything wrong with my code here? I keep getting this error: System.InvalidOperationException: The request message was already …
c# .net async-await dotnet-httpclient func