📜  defaultrequestheaders.authorization 基本身份验证 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:04.950000             🧑  作者: Mango

代码示例1
// For basic auth use the following:
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", "encrypted user/pwd");