Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create HTTP Request object
Message
De
22/12/2016 09:09:39
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01645753
Message ID:
01645891
Vues:
54
>>
>>Ok, I see two potential issues here: a) extraction of the correct value of the token from the JSON reply; b) the header may require some kind of encoding (base64, for instance). Can you paste here the C# code, with any sensitive information properly redacted?
>
>This is the C# code that works:
>
>var request = new RestRequest('\methodtogettable', Method.GET);
>request.AddHeader("Authorization", "bearer " + _token);
>var response = _client.Execute(request);
>
>
>And I am communicating with the Web API developer over email and he didn't mention need for encoding at all.

How is your VFP code to get the authorization token?

By the way: 401 = Unauthorized...
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform