Search found 213 matches
- Mon May 27, 2024 10:52 pm
- Forum: Other ScottKlement.com Tools
- Topic: Using encoder64
- Replies: 1
- Views: 10
Re: Using encoder64
I'm still wrestling with Base64 and RPG myself but ... The simple answer is that you are encoding an EBCDIC string and expecting the results to match that of performing the same task with ASCII or UTF-8. Base64 encoding is designed to preserve a _binary_ pattern. Which we can see most easily as hex....
- Sun May 26, 2024 4:22 pm
- Forum: HTTPAPI
- Topic: How to set "Authorization" in http header
- Replies: 3
- Views: 91
Re: How to set "Authorization" in http header
I have never seen this type of authentication before but the code below produces basically the same log as the curl you supplied. This may not be the way to do it - Scott would undoubtedly know. I can't tell if it will actually work because you didn't supply a real test IP nor details of the require...
- Sat May 25, 2024 5:40 pm
- Forum: HTTPAPI
- Topic: How to set "Authorization" in http header
- Replies: 3
- Views: 91
Re: How to set "Authorization" in http header
What type of authentication is required? Basic, Bearer? Check out the prototype for http_setauth() for the details of the ones supported directly by HTTPAPI. In some cases you may also need to call http_xproc( HTTP_POINT_ADDL_HEADER ... to add authentication tokens. In other words, we can't really a...
- Mon May 13, 2024 8:49 pm
- Forum: HTTPAPI
- Topic: DATA-INTO with YAJLINTO
- Replies: 6
- Views: 3118
Re: DATA-INTO with YAJLINTO
Glad to hear you at least know that the empty array is not an issue.
There have been one or two PTFs related to RPG's DATA-INTO so I'm guessing that one of them is missing on one system.
Good luck.
There have been one or two PTFs related to RPG's DATA-INTO so I'm guessing that one of them is missing on one system.
Good luck.
- Mon May 13, 2024 6:42 pm
- Forum: HTTPAPI
- Topic: DATA-INTO with YAJLINTO
- Replies: 6
- Views: 3118
Re: DATA-INTO with YAJLINTO
Hmmmm very strange.
Did you actually try running my code as-is ? That would at least rule out the possibility of a missing PTF or something,
Did you actually try running my code as-is ? That would at least rule out the possibility of a missing PTF or something,
- Mon May 13, 2024 5:53 pm
- Forum: HTTPAPI
- Topic: DATA-INTO with YAJLINTO
- Replies: 6
- Views: 3118
Re: DATA-INTO with YAJLINTO
I just tested your basic scenario and encountered no problem. The trackingid populated as expected. This is my code: **free Dcl-ds List qualified; riskScore varchar(2); trackingid varchar(32); end-ds; dcl-s testJson varchar(200) inz('{"riskScore":66,"pastFireOverview":[],- "...
- Wed May 08, 2024 5:31 pm
- Forum: HTTPAPI
- Topic: Unable to compile the program which uses Httpapi
- Replies: 6
- Views: 3396
Re: Unable to compile the program which uses Httpapi
<snip> I'm getting the error 'RNF5409' - The prototyped call returns a value which is lost when CALLP is used. That is not an error It is a warning and should be ignored. When i look into the log im getting the below messages. It looks like authority issue. Message . . . . : *SRVPGM object HTTPAPIR...
- Sun Apr 21, 2024 3:20 pm
- Forum: RPG IV
- Topic: MCH3601 unmonitored by HTTPAPIR4
- Replies: 7
- Views: 4668
Re: MCH3601 unmonitored by HTTPAPIR4
It is pretty clear from the returned error text that you have made an error in the URL. Depending on the service, "error" could include credentials but more likely the URL itself. You have changed pretty much everything about the relevant part of the program if what you said is true "...
- Thu Apr 18, 2024 1:27 pm
- Forum: YAJL-ILE
- Topic: Clarification on - YAJL_OBJECT_FIND
- Replies: 2
- Views: 3780
Re: Clarification on - YAJL_OBJECT_FIND
Unless I misunderstand you, you have answered your own question.
YAJL_OBJECT_FIND returns a pointer so one way to test is simply:
YAJL_OBJECT_FIND returns a pointer so one way to test is simply:
Code: Select all
node = YAJL_OBJECT_FIND(.....);
if node <> *Null;
// node is valid
else;
// node not found
endif;
Re: OUATH2
Glad Scott was able to sort it for you - he is much (much, much) more knowledgeable about this stuff than I am. Hopefully, your OAUTH transition will be as smooth as mine has been with Zoom. Once I had the token logic sorted, changing the individual APIs calls was pretty easy - so far anyway! Good l...