Earn income with your C# skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest self-service freelancing marketplace for people like you.

How to set the Authorization Header of HttpClient in C#

Here's how to set the authorization header:


var clientHandler = new HttpClientHandler();

var client = new HttpClient(clientHandler);

client.DefaultRequestHeaders.Authorization = 
    new AuthenticationHeaderValue("Bearer", "Your Oauth token");



Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.3.0