Top "Dotnet-httpclient" questions

Refers to the System.

How to clone a HttpRequestMessage when the original request has Content?

I'm trying to clone a request using the method outlined in this answer: https://stackoverflow.com/a/18014515/406322 However, I get …

c# .net rest http dotnet-httpclient
What is HttpRequestMessage.Properties?

What is the purpose of HttpRequestMessage.Properties? I'm wondering if it provides something useful for my application.

c# .net dotnet-httpclient
How do I do a patch request using HttpClient in dotnet core?

I am trying to create a Patch request with theHttpClient in dotnet core. I have found the other methods, using (…

c# dotnet-httpclient http-patch
HttpClient PostAsync to Blogger API

I am using the following API to allow me to interact with Google Blogger. I need to insert a post …

c# rest oauth blogger dotnet-httpclient
.NET HttpClient: How to set the request method dynamically?

How can one use HttpClient and set the method dynamically without having to do something like: public async Task<…

c# .net http webrequest dotnet-httpclient
HttpRequestException vs WebException

This is a general question that I'm confused about. I thought once a REST request was made, an error would …

c# rest dotnet-httpclient webexception
HttpResponseMessage.Content.Headers ContentDisposition is null

When downloading a file with HttpClient, I'm downloading first the headers and then the content. When headers are downloaded, I …

c# dotnet-httpclient
Dependency injection: HttpClient or HttpClientFactory?

Everywhere I can see three main approaches to create clients (basic, named, typed) in DI, but I have found nowhere …

c# asp.net-core dependency-injection dotnet-httpclient
Re-using HttpClient but with a different Timeout setting per request?

In order to reuse open TCP connections with HttpClient you have to share a single instance for all requests. This …

.net dotnet-httpclient
How to Create a Issue into JIRA through REST api?

I am sending the POST request to the JIRA with my json data for create a project, but I am …

c# json jira dotnet-httpclient jira-rest-api