Top "Dotnet-httpclient" questions

Refers to the System.

How to disable Chunked Transfer Encoding in ASP.Net C# using HttpClient

I'm trying to post some JSON to an external API which keeps failing because my content is chunked. Please can …

asp.net asp.net-core dotnet-httpclient .net-core
PUT request results in 400 Bad Request

I am trying to do a PUT request to a Web API method using HttpClient. An almost identical POST request …

c# asp.net-web-api restsharp http-status-code-400 dotnet-httpclient
Can't get any cookies with C# HttpClient

I'm trying to get cookies on the Spotify login page with C# and the HttpClient class. However, the CookieContainer is …

c# cookies spotify dotnet-httpclient cookiecontainer
Distinguish timeout from user cancellation

HttpClient has a builtin timeout feature (despite being all asynchronous, i.e. timeouts could be considered orthogonal to the http …

c# .net timeout task-parallel-library dotnet-httpclient
Stream.CopyToAsync with progress reporting - progress is reported even after copying finish

I've build a simple console applications that download files from the internet. Because I had problems with WebClient I decided …

c# asynchronous dotnet-httpclient .net-4.6
Client certificate with HttpClient in c#

Want to send data with client certificate (.p12 or .pfx) from Windows application to Server machine, Windows application developed in .…

c# dotnet-httpclient client-certificates x509certificate2
How to convert curl request to HttpClient

I have a curl request that looks like this: curl -i -XPOST 'http://my_url:port/write?db=myDb' -u …

c# .net curl dotnet-httpclient asynchttpclient
How to use ConfigurePrimaryHttpMessageHandler generic

I want to add an HttClientHandler for a Typed HttpClient in order to include certificate authentication. All the examples I'm …

c# .net-core dotnet-httpclient .net-core-2.1 httpclientfactory
Should HttpClient instances created by HttpClientFactory be disposed?

So, I've registered a named client with the services collection in my Startup.cs: services.AddHttpClient(someServiceName, client => client.…

.net-core dotnet-httpclient idisposable asp.net-core-2.1 httpclientfactory
Should I share types between a Web API service and its client ? What are the other options?

We are developing a Web API RESTful service to provide access to common data to all the applications of our …

.net asp.net-web-api dotnet-httpclient