Search found 681 matches

by Scott Klement
Wed May 29, 2024 4:36 am
Forum: YAJL-ILE
Topic: Parsing error 1002
Replies: 1
Views: 22

Re: Parsing error 1002

I'm not aware of any such limitations. Is it possible that your JSON data is loaded into a 100000 variable before you call DATA-INTO, and that the 100000 isn't large enough?
by Scott Klement
Wed May 29, 2024 4:27 am
Forum: General
Topic: Pointer not set for location referenced - MCH3601
Replies: 4
Views: 114

Re: Pointer not set for location referenced - MCH3601

how can i reproduce the problem?
by Scott Klement
Wed May 29, 2024 4:24 am
Forum: HTTPAPI
Topic: How to set "Authorization" in http header
Replies: 5
Views: 180

Re: How to set "Authorization" in http header

I could see using an additional header callback to set the 'accept' header. I don't see why you'd use it for the Authorization, though... why wouldn't you just use http_setAuth for that?
by Scott Klement
Wed May 29, 2024 4:16 am
Forum: HTTPAPI
Topic: http_string is timing out
Replies: 2
Views: 308

Re: http_string is timing out

You have written an "additional header" callback. Is it possible that you wrote that incorrectly? This is a common reason for a timeout.
by Scott Klement
Wed May 29, 2024 4:13 am
Forum: HTTPAPI
Topic: OUATH2
Replies: 21
Views: 6681

Re: OUATH2

the code you provided (http_setoption) is how you change the timeout.

This doesn't affect HTTP_TIMEOUT, which is just a constant.

Please explain why you are asking this. Are you having a problem? What problem are you having?
by Scott Klement
Thu May 23, 2024 7:45 pm
Forum: General
Topic: QSQPTABL
Replies: 2
Views: 318

Re: QSQPTABL

You cleared QSQPTABL? As you said, it should only have one row and one column, containing the number 1. It shouldn't ever be updated or changed -- that's always what that table contains. Moti's message makes no sense. QSQPTABL *is* a physical file. And I don't see why you'd ever have a copy of it an...
by Scott Klement
Thu May 23, 2024 7:35 pm
Forum: HTTPAPI
Topic: HTTPS issue for website
Replies: 1
Views: 221

Re: HTTPS issue for website

Just like in the browser, you need to start the URL with 'https://' rather than 'http://' in order for HTTPAPI to connect using TLS.
by Scott Klement
Fri May 17, 2024 9:53 pm
Forum: HTTPAPI
Topic: Problem compiling code
Replies: 2
Views: 1034

Re: Problem compiling code

You appear to be trying to call the BASE64 utility. This is not part of HTTPAPI, it is a separate download and a separate binding directory that you'll need to bind to. If you're still having problems after resolving the above error, please provide the error messages. I have no idea what your post m...
by Scott Klement
Fri May 17, 2024 9:39 pm
Forum: RPG IV
Topic: QSYS2.HTTP_GET
Replies: 1
Views: 222

Re: QSYS2.HTTP_GET

In the Curl example, you are telling it to use X-API-Key as a header with a value of myapikey. In the HTTP_GET example, you are telling it to sign in with a userid and password, and that the userid to use is "X-API-Key: myapikey". That's very different from sending it as a header... Don't ...
by Scott Klement
Fri May 17, 2024 9:28 pm
Forum: RPG IV
Topic: XML Parsing no longer supported by IBM in 7.5?
Replies: 2
Views: 516

Re: XML Parsing no longer supported by IBM in 7.5?

Bear in mind that 7.5 is not new -- it was released over 2 years ago. I'm not sure what your boss is referring to, but it doesn't make any sense to say that "XML isn't supported anymore." There may have been a PARTICULAR XML package that support ended for -- I don't remember, honestly -- b...