Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a webapi with parameters
Message
De
05/03/2018 11:41:32
 
 
À
05/03/2018 11:37:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
01658531
Message ID:
01658542
Vues:
52
>>.setRequestHeader() must be executed between an .open() and a .send(): that is, first you open, then you set the headers, and only afterward you send the call.
>
>Correct Antonio, thank you, now I just need to put this headers into vfp,
>
>
>curl -X GET --header 'Accept: application/json' --header 'Authorization: bearer eyJ0..very..long..token..qg' 'https://api-xxinvoicing-co-.com/api/xxnasw/companies'
>
>***this is not working:
>.open("GET", cdom, .F.) 
>.setRequestHeader("Accept:", "application/json")
>.setRequestHeader("Authorization:", "bearer "+ckey)
>
>.Send()
>
Calling through curl is working ok?
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform