C# RestSharp 添加 Basic Auth 验证

var client = new RestClient("https://www.51dev.com");

var Username="123";
var Password="123";


client.Authenticator = new HttpBasicAuthenticator(Username, Password);

 

你可能感兴趣的