Search found 658 matches

by Scott Klement
Thu Mar 09, 2023 5:42 am
Forum: HTTPAPI
Topic: Consuming a REST Web Service
Replies: 10
Views: 7507

Re: Consuming a REST Web Service

HTTPAPI can create it for you. Just do this before making the request: http_setAuth(HTTP_AUTH_BASIC: 'userid here': 'password here'); HTTPAPI will calculate the value and send it as an authorization basic header -- according to the rules for basic. (FWIW, the string it uses isn't actually hashed -- ...
by Scott Klement
Thu Mar 09, 2023 5:37 am
Forum: HTTPAPI
Topic: Send SOAP with filename in request
Replies: 2
Views: 2885

Re: Send SOAP with filename in request

I don't understand. This is just a string of text, you can put anything you want in it -- HTTPAPI doesn't care what you put there. What problem are you having?
by Scott Klement
Thu Mar 02, 2023 11:31 pm
Forum: YAJL-ILE
Topic: YAJL error following V7R4 upgrade
Replies: 3
Views: 3235

Re: YAJL error following V7R4 upgrade

You can go here to see if anything new has been done since you downloaded it:
https://www.scottklement.com/yajl/
by Scott Klement
Tue Feb 28, 2023 9:51 pm
Forum: HTTPAPI
Topic: Wrong response with HTTPAPI
Replies: 6
Views: 3686

Re: Wrong response with HTTPAPI

I don't understand what you are saying. First you say it's not a JSON document -- then you show me a JSON document.... Then you ask me how you can make it not be a JSON document. to be absolutely clear: HTTPAPI merely downloads, byte-for-byte what the HTTP server sends. It does not change the format...
by Scott Klement
Tue Feb 28, 2023 9:48 pm
Forum: Other ScottKlement.com Tools
Topic: Restriction on Size in base64_decode procedure
Replies: 1
Views: 6631

Re: Restriction on Size in base64_decode procedure

I'm not aware of any such limitation. Can you provide a code example that illustrates the problem?
by Scott Klement
Tue Feb 28, 2023 9:45 pm
Forum: General
Topic: YAJL error following V7R4 upgrade
Replies: 1
Views: 6709

Re: YAJL error following V7R4 upgrade

This is a duplicate post.

Please send any replies/thoughts in this thread: /forums/viewtopic.php?t=260
by Scott Klement
Tue Feb 28, 2023 9:43 pm
Forum: YAJL-ILE
Topic: YAJL error following V7R4 upgrade
Replies: 3
Views: 3235

Re: YAJL error following V7R4 upgrade

The error means that it encountered a premature EOF -- in other words, it reached the end of file (EOF) before the JSON data was complete.

Check the data you're receiving...
by Scott Klement
Sun Feb 26, 2023 10:22 pm
Forum: HTTPAPI
Topic: Wrong response with HTTPAPI
Replies: 6
Views: 3686

Re: Wrong response with HTTPAPI

Yes, if indeed what you are seeing is JSON, the \ before the / is completely normal and expected. And it's not in any way related to HTTPAPI -- that's what the server is responding with, and it's doing that because it has to in order to follow JSON standards. When you interpret that JSON with a tool...
by Scott Klement
Sat Feb 25, 2023 12:06 am
Forum: YAJL-ILE
Topic: DATA-INTO returning 1002: parse error: trailing garbage█
Replies: 2
Views: 2749

Re: DATA-INTO returning 1002: parse error: trailing garbage█

In any case, the error message simply means that there are additional characters after the closing } in your JSON document -- if my suggestion above doesn't work, you'll simply have to debug the program to see what is there and figure out why and how to handle it properly.
by Scott Klement
Sat Feb 25, 2023 12:04 am
Forum: YAJL-ILE
Topic: DATA-INTO returning 1002: parse error: trailing garbage█
Replies: 2
Views: 2749

Re: DATA-INTO returning 1002: parse error: trailing garbage█

The origin of the trailing garbage is not obvious in your code. That said, I do see two potential problems. 1) You should not do this: JSONIn = %trim(JSONCLOB.Data) ; Why not? Because the CLOB has only promised you 'JSONCLOB.Len' characters of data... it has not promised that the entire JSONCLOB.DAt...