内容目录
// 设置 client
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new System.Net.Http.Headers.AuthenticationHeaderValue
("Basic", Convert.ToBase64String(Encoding.UTF8.GetBytes($"{user}:{password}")));
文章评论