C# - How to set a BaseAddress using the HttpClient
If you would rather work with relative URLs than absolute URLs you can use the BaseAddress property of the HttpClient. All you have to do is »
If you would rather work with relative URLs than absolute URLs you can use the BaseAddress property of the HttpClient. All you have to do is »
This might seem trivial, but since I got the question the other day I might as well make a post about it. Using the HttpClient in »
Yahoo has one of the best free financial APIs out there and in this post you will see an example of how to call it. Yahoo »
I needed to set a header while using the HTTPClient in C# for another blog post. I thought this was quite trivial using the GetAsync, PostAsync »
In this post I demonstrate how you can change the Encoding when using the HTTPClient in C#. To show you how I have created a simple »
In this post I demonstrate how you can POST or PUT JSON using the HTTPClient in C#. The simplest way to do this is using the »
It is quite easy to send XML using the HttpClient in asp.net core. In order to do this you need to use the StringContent object, »
For some reason I can never remember how to make a POST or PUT request with a content-type other than JSON or XML. For JSON and »
In this post I will go through how you can mock the HttpClient class in C#. This is often needed as everything we develop these days »