On May 4, 2020, at 2:01 PM, B Stone <bvstone@xxxxxxxxx> wrote:
Thanks for the clarification.
Seems that you just need to get HTTPAPI set up properly to send it.
You could compare a raw Postman request (code) with the debugged request in
HTTPAPI to look for differences. I know others have asked how to sent
Authentication requests before, but since I normally use GETURI I don't
Bradley V. Stone
MAILTOOL Benefit #22 <https://www.bvstools.com/mailtool.html>: Low Total
Cost of Ownership!
On Mon, May 4, 2020 at 12:54 PM Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:
It is a JWT Brad.--
Using this curl command on my Mac it works as expected:
curl --request GET
--header 'authorization: Bearer mySecrtetCodeGoesHere'
I have also run similar code on the Mac in PHP and it works too.
I tried running the same PHP on the IBM i but have certificate issues
then. But HTTPAPI is not reporting any certificate issues and in the log I
can see the cert exchange.
On May 4, 2020, at 1:35 PM, B Stone <bvstone@xxxxxxxxx> wrote:OAuth
Is mySecrtetCodeGoesHere an oauth 2.0 token or a code?
Normally you use your secret code and credentials to exchange for an
Bradley V. Stone
GreenTools for PayPal <https://www.bvstools.com/g4pp.html>: Easily send
PayPal invoices from your IBM i applications using RPG ILE! Process
refunds, get account balances and more!
On Mon, May 4, 2020 at 12:00 PM Jon Paris <jon.paris@xxxxxxxxxxxxxx>
Cross-posted to HTTPAPI and WEB400
I just coded up a basic Zoom API request - this is the basic HTTPAPI
url = 'https://api.zoom.us/v2/webinars/' +
%EditC(webinarId: 'X') +
headerVars.contentType = 'application/json';
headerVars.authorization = 'Bearer mySecrtetCodeGoesHere';
: %addr(headerVars) );
rc = http_get( url: '/tmp/result.txt' );
if rc <> 1;
vars likeds(headerVars) const;
Dcl-C CRLF x'0d25';
headersToAdd = 'content-type: ' + vars.contentType + CRLF
+ 'authorization: ' + vars.authorization + CRLF;
This gives me a "401 - This page requires a user-id & password" error
If I copy/paste the credentials and URL into Insomnia and test it - it
works. The user Id stuff is in the "secret key" bit.
Since I copied and pasted this stuff into insomnia from the RPG stuff I
can only assume I missed a step somewhere. But where?
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.