Search found 11 matches

by ronny45
Fri Nov 07, 2025 9:13 pm
Forum: HTTPAPI
Topic: Question on ssl_error(406)
Replies: 2
Views: 24888

Re: Question on ssl_error(406)

Hi Scott,

Thank you so much for your response. Everything works fine from our Development Machine and we get a successful response back. The issue is only with production machine. I am working with the network team to troubleshoot the issue.

Thanks
by ronny45
Fri Nov 07, 2025 3:42 pm
Forum: HTTPAPI
Topic: error MCH1210 in HTTPAPIR4 Len = -1
Replies: 2
Views: 25008

Re: error MCH1210 in HTTPAPIR4 Len = -1

I'd recommend first setting debug options before calling http_string:

Code: Select all

http_debug(*on: '/tmp/httpdebug.txt');
and review the log written int text file.
by ronny45
Wed Nov 05, 2025 4:27 pm
Forum: HTTPAPI
Topic: Question on ssl_error(406)
Replies: 2
Views: 24888

Question on ssl_error(406)

Hi Scott and team,

I hope someone can help me with this - I am using HTTAPI to get to an internal API endpoint which works from from our Development machine but keeps throwing SSL_Error(406) on Production. Here is the log generated from HTTPAPI:

HTTPAPI Ver 1.49 released 2024-04-16
NTLM Ver 1.4 ...
by ronny45
Mon Oct 06, 2025 3:29 pm
Forum: HTTPAPI
Topic: Question on setting a Token in HTTP Header
Replies: 6
Views: 71783

Re: Question on setting a Token in HTTP Header

Yes thank you! that seems to have fixed the problem.
by ronny45
Fri Oct 03, 2025 3:30 pm
Forum: HTTPAPI
Topic: Question on setting a Token in HTTP Header
Replies: 6
Views: 71783

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 ...
by ronny45
Thu Oct 02, 2025 9:44 pm
Forum: HTTPAPI
Topic: Question on setting a Token in HTTP Header
Replies: 6
Views: 71783

Re: Question on setting a Token in HTTP Header

Nevermind Scott! it worked using

Code: Select all

http_setauth(HTTP_AUTH_BEARER  : ' ' : token);
You are amazing!!
by ronny45
Thu Oct 02, 2025 9:24 pm
Forum: HTTPAPI
Topic: Question on setting a Token in HTTP Header
Replies: 6
Views: 71783

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 ...
by ronny45
Mon Sep 29, 2025 3:29 pm
Forum: HTTPAPI
Topic: Question on setting a Token in HTTP Header
Replies: 6
Views: 71783

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
by ronny45
Mon Sep 29, 2025 3:26 pm
Forum: HTTPAPI
Topic: SSL Handshake Error #32
Replies: 4
Views: 45878

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.
by ronny45
Wed Sep 24, 2025 9:44 pm
Forum: HTTPAPI
Topic: SSL Handshake Error #32
Replies: 4
Views: 45878

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 ...