Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a webapi with parameters
Message
From
05/03/2018 11:41:32
 
 
To
05/03/2018 11:37:22
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
01658531
Message ID:
01658542
Views:
56
>>.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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform