3.44Setting Basic authentication

Created on Aug 17, 2026~1 min read

Adds an Authorization header to the request whose value consists of the Basic keyword followed by the Base64 encoding of the username:password string.

cs
HttpRequestBuilder.Post("https://furion.net/")    .AddBasicAuthentication("username", "password");HttpRequestBuilder.Post("https://furion.net/")    .AddBasicAuthentication("username", null);  // Supports setting the password to null