Category "dotnet-httpclient"

system.net.http version confusion between VS 2019 and SQL Server 2016

I've found lots of reported issues related closely to this, but nothing that's quite a match. I'm building a very simple C# class, with the intention of adding

Moving from HttpWebRequest to HttpClient

I would like to update some legacy code from using HttpWebRequest to use HttpClient, but I am not quite sure how to send string to the REST API I am accessing.

Upload file to SharePoint using HTTP Client is not working

I want to upload a static file to SharePoint using Graph API and HTTP Client. We have a folder where the file is kept, now we have to read the file from the fol

HttpClient using FormUrlEncodedContent

I have checked other answers before posting this, so please try not to jump straight to conclusions here. I'm using HttpClient to connect to the API for an appl

How to fix "AADSTS90102: 'redirect_uri' value must be a valid absolute Uri." error in Microsoft Graph

Following this procedure: https://docs.microsoft.com/en-us/graph/auth-v2-user I'm trying to get a refresh token from this microsoft end point: https://login.m

How do I fix a "System.Net.Http.HttpRequestException: TypeError: Failed to fetch" in Blazor WebAssembly?

The code below, runs for about fifteen seconds on the "dataFs = await _Http.GetStreamAsync(BODIST_DATA_HTTPNAME)" line before failing with a "System.Net.Http.Ht

Is it possible to set custom DNS resolver in C#'s HttpClient

what exactly I want : public static CustomDnsResolver : Dns { ..... } public static void Main(string[] args) { var httpClient = new HttpClient();

How to Configure Network Tracing Dotnet core for HttpClient calls?

As per reference document at https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-configure-network-tracing We can setup this in web.c

Azure durable function socket exception

We have a durable function (v3) hosted on a consumption plan. This function uses Azure App configuration for the common settings of our software. The durable fu

Why use HttpClient for Synchronous Connection

I am building a class library to interact with an API. I need to call the API and process the XML response. I can see the benefits of using HttpClient for Async

How to trigger (NOT avoid!) an HttpClient deadlock

There are a number of questions on SO about how to avoid deadlocks in async code (for example, HttpClient methods) being called from sync code, like this. I'm a

Make Https call using HttpClient

I have been using HttpClient for making WebApi calls using C#. Seems neat & fast way compared to WebClient. However I am stuck up while making Https calls.

Make Https call using HttpClient

I have been using HttpClient for making WebApi calls using C#. Seems neat & fast way compared to WebClient. However I am stuck up while making Https calls.