Hi,
I have a very simple test rig set up for some services on a remote server. The problem is that the protocol is https rather than http.
While the URL goes in fine, I am getting an error that says there are no services on http://
Am I doing something wrong is will RestSharp not handle https calls?
Demo code goes like this
private void startTest()
{
string password = "password";
doRestSharpWebRequest(email, password);
}
private void doRestSharpWebRequest(email, password)
{
var restClient = new RestClient();
restClient.Authenticator = new SimpleAuthenticator("email", email, "password", password);
var restRequest = new RestRequest("token", Method.GET);
restRequest.AddHeader("Accepts", "application/json;version=1");
restRequest.AddHeader("Authorization", "apikey zyzyz");
restRequest.RequestFormat = DataFormat.Json;
IRestResponse<userlogin> response = restClient.Execute<userlogin>(restRequest);
}