I am new to HttpClient. During our test, we shut down the web service that this code is hitting in order to test this block of code. (BTW, it works ...
I am new to HttpClient. During our test, we shut down the web service that this code is hitting in order to test this block of code. (BTW, it works ...
I thought I understood how AddHttpClient worked, but apparently, I do not. I've distilled this problem down to the very basics, and it still isn't fun ...
I've got a minimal API service with a MapPost: It works fine when sending a JSON with Postman: But from a C# client: var kv = new Dictionary< ...
I've been reading about how to use HttpClient in .NET Framework. The two main points I gathered was that HttpClient should be a singleton, and Servic ...
I am trying to mock an Http Client that uses the IdentityModel extension to request a client credentials token. I started doing the setup with: ...
I have a strange behavior that I can't manage to explain. In an async function, an awaited call blocks forever. Note: it seams that the problem occur ...
public class ProductViewModel { public int id { get; set; } public string title { get; set; } public string description { get; set; } ...
I'm fairly new to use HTTPClient and sending REST requests to APIs, I'm currently practicing multipart upload using this Google Drive API endpoint: P ...
Is there any issue with below implementation inside Blazor component? A lot of examples repeatedly use CreateClient inside every method and I am wonde ...
I'm using .NET Framework 4.7.2 and am trying to use IHttpClientFactory to create HttpClient instances. I downloaded the Microsoft.Extensions.Http v7 ...
I'm new to Polly, but want to implement it as it seems like a good option for handling exponential backoff if an HTTP request fails. What I'd like to ...
I have about 100 different external endpoints spread out over about 6 or 7 API's I'm calling from my application. All of these 100 (let's call them) r ...
I am looking to optimize my code… I have number of API with early same structure for client and handler. But I have some questions about disposing. ...
I'm currently developing an ASP NET Core project with a linked API project, so we can have shared code between different projects. I'm wanting to inje ...
I have problems accessing a POST method from my controller class with Http.PostJsonAsync and always get back Bad request status error.However I have d ...
I am building a WASM app for the first time, and have been following tutorials. The Solution I have is composed of 3 projects created by the wizard ( ...
A simple login method that works just fine until I shut down my API. Then the try-catch block acts as intended, and an exception is thrown and caught ...
I have a Windows service that reads data from the database and processes this data using multiple REST API calls. Originally, this service ran on a t ...
I have the following code to add logs to log analytics: On running this, I get the below exception: The request was canceled due to the configu ...
I'm trying to download .webp image, and it always returns 404, but if I hardcode URI or smply open it in browser, it returns 200 with image. Details: ...