📅  最后修改于: 2022-03-11 14:49:19.190000             🧑  作者: Mango
var client = new RestClient("http://yoururl.com");
client.Authenticator = new HttpBasicAuthenticator(userName, password);
var request = new RestRequest("resource", Method.GET);
client.Execute(request);