Search found 8 matches
- Mon Oct 06, 2025 3:29 pm
- Forum: HTTPAPI
- Topic: Question on setting a Token in HTTP Header
- Replies: 6
- Views: 9012
Re: Question on setting a Token in HTTP Header
Yes thank you! that seems to have fixed the problem.
- Fri Oct 03, 2025 3:30 pm
- Forum: HTTPAPI
- Topic: Question on setting a Token in HTTP Header
- Replies: 6
- Views: 9012
Re: Question on setting a Token in HTTP Header
One more question - Do I need to reset anything before trying to retrieve the token again? I am noticing the HTTP_REQ comes back with error "This page requires a user-id & password" when I try to retrieve token again in same session. Once I log out and log-back in, the token retrieval works fine ...
- Thu Oct 02, 2025 9:44 pm
- Forum: HTTPAPI
- Topic: Question on setting a Token in HTTP Header
- Replies: 6
- Views: 9012
Re: Question on setting a Token in HTTP Header
Nevermind Scott! it worked using
You are amazing!!
Code: Select all
http_setauth(HTTP_AUTH_BEARER : ' ' : token);
- Thu Oct 02, 2025 9:24 pm
- Forum: HTTPAPI
- Topic: Question on setting a Token in HTTP Header
- Replies: 6
- Views: 9012
Re: Question on setting a Token in HTTP Header
Thank you so much for the reply Scott.
I am using HTTP_REQ and building req body to get the token back which is working fine. When I do the next HTTP_REQ call with request data, it is returning HTTP 404 Not Found. Same thing works fine in Postman. I am guessing that I am messing up the header ...
I am using HTTP_REQ and building req body to get the token back which is working fine. When I do the next HTTP_REQ call with request data, it is returning HTTP 404 Not Found. Same thing works fine in Postman. I am guessing that I am messing up the header ...
- Mon Sep 29, 2025 3:29 pm
- Forum: HTTPAPI
- Topic: Question on setting a Token in HTTP Header
- Replies: 6
- Views: 9012
Question on setting a Token in HTTP Header
Hello,
I have used HTTP_REQ(POST) to get a token from a Token Endpoint URL using client id and secret. Now I need to call another API but this API needs the token value set in Header. Is there an example or suggestion on how to set the Header value?
Thank you
I have used HTTP_REQ(POST) to get a token from a Token Endpoint URL using client id and secret. Now I need to call another API but this API needs the token value set in Header. Is there an example or suggestion on how to set the Header value?
Thank you
- Mon Sep 29, 2025 3:26 pm
- Forum: HTTPAPI
- Topic: SSL Handshake Error #32
- Replies: 4
- Views: 6664
Re: SSL Handshake Error #32
Hi Scott,
Yes you are right, there is a corporate policy that was blocking my API Calls. I tried an internal API that successfully returned a Token using HTTP_REQ.
Thank you so much.
Yes you are right, there is a corporate policy that was blocking my API Calls. I tried an internal API that successfully returned a Token using HTTP_REQ.
Thank you so much.
- Wed Sep 24, 2025 9:44 pm
- Forum: HTTPAPI
- Topic: SSL Handshake Error #32
- Replies: 4
- Views: 6664
Re: SSL Handshake Error #32
Thank you so much for your response Scott. Regarding GSKit, I was researching the issue using AI Tools and it suggested to validate if GSKit is installed using below command in QSH:
QSH Command Entry
$
cd /QOpenSys/usr/bin
$
gsk8ver
qsh: 001-0019 Error found searching for command ...
QSH Command Entry
$
cd /QOpenSys/usr/bin
$
gsk8ver
qsh: 001-0019 Error found searching for command ...
- Wed Sep 24, 2025 8:00 pm
- Forum: HTTPAPI
- Topic: SSL Handshake Error #32
- Replies: 4
- Views: 6664
SSL Handshake Error #32
Hello Everyone,
I am trying to implement and test a simple HTTP_GET request using HTTPAPI, however Im seeing below error. I also noticed that GSKit is not installed on our machine:
Complete log:
HTTPAPI Ver 1.49 released 2024-04-16
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R4M0
New ...
I am trying to implement and test a simple HTTP_GET request using HTTPAPI, however Im seeing below error. I also noticed that GSKit is not installed on our machine:
Complete log:
HTTPAPI Ver 1.49 released 2024-04-16
NTLM Ver 1.4.0 released 2014-12-22
OS/400 Ver V7R4M0
New ...