[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to build HTTPS header using GET
I'm trying to access our website to retrieve data using the HTTPAPI.
I'm passing a parameter for the security token (#token) and I'm using
the REST API. I don't receive any errors when I call my RPGLE program
and no data is retrieve. Does anyone know how to build a HTTPS header
for the GET?
Here's my code:
rc = http_url_get(
'https://my.website.com/services/apexrest/v1/order/all'
:'/tmp/orders/orderdata.txt'
:0
:*omit
:*omit
:*omit
:'-H Authorization: Bearer ' +
#token);
Thank you
AM
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------