Search found 685 matches

by Scott Klement
Thu May 30, 2024 8:50 pm
Forum: YAJL-ILE
Topic: JSON array without a named tag
Replies: 2
Views: 8

Re: JSON array without a named tag

both properties and failedValidations should be arrays of character strings, not arrays of data structures.
by Scott Klement
Thu May 30, 2024 8:48 pm
Forum: HTTPAPI
Topic: How to set "Authorization" in http header
Replies: 6
Views: 261

Re: How to set "Authorization" in http header

I think the example provided by the OP violates the HTTP specs -- but assuming that's truly what the server requires, you can do it with a user-defined auth.

Code: Select all

Dcl-S  authToken  varchar(50) inz('00000000-0000-0000-0000-000000000000');

http_setAuth( HTTP_AUTH_USRDFN: '': authToken);
by Scott Klement
Thu May 30, 2024 8:45 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 23
Views: 9211

Re: OUATH2

Also verify that 'atoken' is large enough for the entirety of the token. If it is larger than the 15000 characters allowed by http_setAuth, then consider using the xproc technique.
by Scott Klement
Thu May 30, 2024 8:44 pm
Forum: HTTPAPI
Topic: OUATH2
Replies: 23
Views: 9211

Re: OUATH2

Changing HTTPAPI's timeout won't prevent the server from timing out, it'll only prevent HTTPAPI from timing out. You are using the old http_url_post_xml() routine, which has a parameter for the timeout.. you can just pass that parameter if you want to change HTTPAPI's timeout.) Also, not sure if it'...
by Scott Klement
Wed May 29, 2024 4:36 am
Forum: YAJL-ILE
Topic: Parsing error 1002
Replies: 2
Views: 43

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

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: 6
Views: 261

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: 3
Views: 374

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: 23
Views: 9211

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

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