Tag: console-application

RestSharp Unable to connect to remote server

问题内容: I am trying to use RestSharp in a console application, to connect to an api and get a cookie, but in the response, i keep getting “Unable to connect to remote server”. var client = new RestClient("http://finans-dk.pronestor.com/Api.mvc/v1/Authenticate"); client.Authenticator = new SimpleAuthenticator("login", "????", "password", "????"); var request = new RestRequest("resource", Method.GET); IRestResponse response = client.Execute(request);

Does RestSharp have an issue with “Dots” in the url

问题内容: I am trying to use RestSharp in a console application, to connect to an api, but in the response, I keep getting “Unable to connect to remote server”. var client = new RestClient("https://finans-dk.pronestor.com/Api.mvc/v1/Authenticate?login=foo&password=bar"); var request = new RestRequest(Method.GET); RestResponse response = (RestResponse)client.Execute(request); var content = response.Content; I basically expect RestSharp to call the following: