Search found 8 matches

by twisteddisco
Fri Sep 12, 2025 9:50 am
Forum: HTTPAPI
Topic: HTTP/1.1 401 Unauthorized
Replies: 1
Views: 14891

HTTP/1.1 401 Unauthorized

Hi All,

Could do with some advice if anyone can help or shed light on an error I am getting.

My process is as follows:
1.) Create JWT to get OAUTH2 token, supplying user id and password
2.) Apply token
3.) Call webservice to use the applied token

I create a JWT to be able to get an OAUTH2 token ...
by twisteddisco
Tue Sep 09, 2025 12:11 pm
Forum: HTTPAPI
Topic: HTTP_POINT_ADDL_HEADER Header parameters
Replies: 8
Views: 74821

Re: HTTP_POINT_ADDL_HEADER Header parameters

Hi Scott,

Thankyou for the reply.

For some reason your Forum section was down for a week so I could not read your reply.

The passing of the JWT in the SENDDATA string works fine. The malformed message I was getting was down to mis information from the Vendor as to the actual content of the Claim ...
by twisteddisco
Thu Sep 04, 2025 9:17 am
Forum: HTTPAPI
Topic: HTTP_POINT_ADDL_HEADER Header parameters
Replies: 8
Views: 74821

Passing JWT in Request Body

Hi All,

First of all thankyou for your help now and in the past, much appreciated.

The requirements for my program have move on slightly.

Authorization Header
Your application credentials, client_id and client-secret of the app you created, are exchanged through the Basic Authentication Scheme ...
by twisteddisco
Fri Aug 08, 2025 3:57 pm
Forum: HTTPAPI
Topic: HTTP_POINT_ADDL_HEADER Header parameters
Replies: 8
Views: 74821

Re: HTTP_POINT_ADDL_HEADER Header parameters

It seems my authorisation header needs to be in BASE64 , for this I have downloaded Scott's BASE64R4 program.

The program BASE64R4 makes perfect sense (Thanks Scott) but I just wondered about the format of the data when I add it to header, once converted does it still need the CRLF at the end?

For ...
by twisteddisco
Wed Jul 30, 2025 6:26 pm
Forum: HTTPAPI
Topic: HTTP_POINT_ADDL_HEADER Header parameters
Replies: 8
Views: 74821

HTTP_POINT_ADDL_HEADER Header parameters

Hello All,

Question on the HTTP_POINT_ADDL_HEADER routine.

I have a requirement where I need to create a webservice which will include HEADER parameters and a REQUEST body.

The HEADER parameters are:
IvUserKey
ivUserBic

The Request Body parameters are:
party
partyAccount

I have never used ...
by twisteddisco
Thu Jan 16, 2025 10:32 am
Forum: HTTPAPI
Topic: OAUTH2
Replies: 6
Views: 47786

Re: OAUTH2

Points taken on board! Thankyou
by twisteddisco
Tue Jan 14, 2025 6:28 pm
Forum: HTTPAPI
Topic: OAUTH2
Replies: 6
Views: 47786

Re: OAUTH2

Thankyou for the reply Scott.

I have one more question and excuse the old school RPG code, not a 'free' programming company where I am.

So I have all of the code in place and its looks good so far, the code is:



D OauthData ds qualified
D access_token 4096a
D token_type 20a
D expires_in 10i ...
by twisteddisco
Fri Dec 13, 2024 8:52 am
Forum: HTTPAPI
Topic: OAUTH2
Replies: 6
Views: 47786

OAUTH2

Hi,

I need some pointers for anybody who has used HTTPAPI to work with OAUTH2.

I need to work with OAUTH2 to get the token before processing further requests.

So what I need to do is:
1.) Get a token from a given URL using client id and secret

Information from the vendor:

curl --request POST ...