#RestSharp

http post 使用 RestSharp 调用

1、管理nuget包,搜索RestSharp程序版本选择105.2.3  安装后使用方式为varclient=newRestClient(url);client.Timeout=-1;varrequest=newRestRequest(Method.POST);request.AddHeader(&...

C# RestSharp 添加 Basic Auth 验证

varclient=newRestClient("https://www.51dev.com");varUsername="123";varPassword="123";client.Authenticator=newHttpBasicAuthenticator(Username,Password); ...