Top "Dotnet-httpclient" questions

Refers to the System.

Dynamically changing HttpClient.Timeout in .NET

I need to change a HttpClient.Timeout property after it made a request(s). When I try, I get an …

c# .net timeout dotnet-httpclient
How can I get System.Net.Http.HttpClient to not follow 302 redirects?

Using HttpClient from NuGet. The app sends a post with client.PostAsync(). I'd like it to NOT follow 302 redirects. how? …

c# dotnet-httpclient
How to use HttpClientHandler with HttpClientFactory in .NET Core

I want to use the HttpClientFactory that is available in .NET Core 2.1 but I also want to use the HttpClientHandler …

c# .net-core dotnet-httpclient .net-core-2.1 httpclientfactory
System.Net.Http.HttpClient vs Windows.Web.Http.HttpClient - What are the main differences?

When developing .NET 4.5 desktop apps for Windows I have been used to use System.Net.Http.HttpClient for all communication …

c# .net windows-store-apps dotnet-httpclient
Use HTTP 2 with HttpClient in .Net

I'm trying to request data over HTTP 2.0. I'm using the HttpClient from .Net Core 2.2. I'm on Windows 10 but will run …

http asp.net-core .net-core dotnet-httpclient http2
How to configure web proxy for HttpClient created directly via HttpClientFactory?

By directly I mean without Asp.Net Core IoC/DI helpers. I didn't find docs about it and I think …

c# .net .net-core dotnet-httpclient httpclientfactory
How to implement progress reporting for Portable HttpClient

I'm writing a library with intentions to use it in desktop (.Net 4.0 and up), phone (WP 7.5 and up) and Windows …

c# portable-class-library dotnet-httpclient
Setting HttpClient to a too short timeout crashes process

I've noticed that when I'm using System.Net.HttpClient with a short timeout, it may sometimes crash the process, even …

c# dotnet-httpclient
HttpClient Not Saving Cookies

I am using the new HttpClient to handle my project's web surfing needs; However, although correctly set, the HttpClient does …

c# dotnet-httpclient