Fix C# API RestClient Windows 7 Issue
Budget: $10 – $30 USD
I have the following code on API RestClient WINDOWS FORM C#,
The code works well on a computer with ON WINDOW 10
But on the computer where WINNDOS 7 is installed does not work
*** Please: only those who know how to solve the problem for sure.
THIS CODE
var client = new RestClient(AppConstants.UrlGetToken);
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", AppConstants.BasicCode);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("grant_type", "authorization_code");
request.AddParameter("code", code);
request.AddParameter("redirect_uri", "http://localhost:8083" );
request.AddParameter("scope", "scope");
IRestResponse response = client.Execute(request);
The code works well on a computer with ON WINDOW 10
But on the computer where WINNDOS 7 is installed does not work
*** Please: only those who know how to solve the problem for sure.
THIS CODE
var client = new RestClient(AppConstants.UrlGetToken);
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", AppConstants.BasicCode);
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("grant_type", "authorization_code");
request.AddParameter("code", code);
request.AddParameter("redirect_uri", "http://localhost:8083" );
request.AddParameter("scope", "scope");
IRestResponse response = client.Execute(request);