Search found 5 matches

by twisteddisco
Fri Aug 08, 2025 3:57 pm
Forum: HTTPAPI
Topic: HTTP_POINT_ADDL_HEADER Header parameters
Replies: 5
Views: 8916

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: 5
Views: 8916

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: 45863

Re: OAUTH2

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

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: 45863

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