Search found 18 matches

by sLucke1015
Tue May 23, 2023 2:26 am
Forum: Other ScottKlement.com Tools
Topic: Encode/decode base64 example
Replies: 9
Views: 24709

Re: Encode/decode base64 example

I'm sorry... It is supposed to be an embedded TIFF document (may be a single page or multiple pages) and it is b64 encoded. Currently the RPGLE program is successfully using the following HTTPAPI to retrieve the JSON and save it to the IFS: http_setOption ( 'network-ccsid' : '1208' ); http_setAuth( ...
by sLucke1015
Mon May 22, 2023 8:47 pm
Forum: Other ScottKlement.com Tools
Topic: Encode/decode base64 example
Replies: 9
Views: 24709

Re: Encode/decode base64 example

I would like to hijack this thread since it's been unused for about 18 months, if I may? I'm not sure what "aa73" was looking for, but I can answer your questions as far as my situation, Scott. The input will be from a field from a complex DS which is the result of a REST APIs JSON reply. ...
by sLucke1015
Wed Apr 26, 2023 1:36 pm
Forum: HTTPAPI
Topic: Consuming a REST Web Service
Replies: 10
Views: 7795

Re: Consuming a REST Web Service

I am now running into a problem with large documents with the following statement: rc = HTTP_req( 'GET' : url : *omit : z_Buffer ); This is the DS that the incoming data will be placed into: dcl-ds downloadDoc qualified; // -downloadDoc dcl-ds requestGroup; // --requestGroup dcl-ds submittingParty; ...
by sLucke1015
Tue Apr 18, 2023 12:47 pm
Forum: HTTPAPI
Topic: Consuming a REST Web Service
Replies: 10
Views: 7795

Re: Consuming a REST Web Service

If a single RPGLE program is doing many "HTTP_req" and "HTTP_string" operations, will one "HTTP_setAuth" suffice?

...or will multiple be necessary?
by sLucke1015
Fri Mar 17, 2023 3:30 pm
Forum: HTTPAPI
Topic: Consuming a REST Web Service
Replies: 10
Views: 7795

Re: Consuming a REST Web Service

Thank you very much Scott.
It's working. The json string is being returned as expected.
Thanks again!
by sLucke1015
Mon Mar 13, 2023 11:21 am
Forum: HTTPAPI
Topic: Consuming a REST Web Service
Replies: 10
Views: 7795

Re: Consuming a REST Web Service

Thank you Jonboy49. It has been added to the program. Very much appreciate your input.
by sLucke1015
Fri Mar 10, 2023 8:24 pm
Forum: HTTPAPI
Topic: Consuming a REST Web Service
Replies: 10
Views: 7795

Re: Consuming a REST Web Service

HI Scott, I'm sorry in the initial post I said "User" and Password" when I should have said "APIKEY" and "APIPIN". I don't know if that makes a difference or not but I have made some progress in that I seem to be getting in to the API server but am not getting what...
by sLucke1015
Tue Mar 07, 2023 4:32 pm
Forum: HTTPAPI
Topic: Consuming a REST Web Service
Replies: 10
Views: 7795

Consuming a REST Web Service

This will be my first experience accessing an API... It is stipulated that the request be accompanied by a header that looks like this: ‘Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX’ where the repeating “X” is a hashed representative of the API User and Password. I am now attempt...