📅  最后修改于: 2022-03-11 14:49:04.950000             🧑  作者: Mango
// For basic auth use the following:
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", "encrypted user/pwd");