We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

I do not get an authorisation code

11-16-2015, 04:06 PM
Please can someone help me,

I 'm developing a .Net connection to my hubic account to get the files and folders from it. I do get the code (so clientid and secret are ok). But when a ask for a Authorization code, I fail.
I put the parameters
var param = string.Format("code={0}&redirect_uri={1}&grant_typ e={2}", code, HttpUtility.UrlEncode(redirectUri), "authorization_code");

into the body of the webrequest

into the header of the webrequest i put

string client = clientId + ":" + clientSecret;
client = EncodeTo64(client);
webRequest.Headers("Authorization", client);

after that I do not get an authorisation_code but an strange page.
Attachment 530

I'm stucked. Can someone has a clue in which direction the solution is?

Thanks in advance