Re: YAJL
[email protected] Tue, 18 Oct 2022 16:39:34 -0400
| Newsgroups | gmane.comp.systems.as400.web |
|---|---|
| Message-ID | <[email protected]> |
I don't know where the chunk data processing problem is but... I created another version of yajl_writeStdout that included the Content-length: parameter in the header and it is now returning just the JSON data. No more chunk data. -----Original Message----- From: Scott Klement <[email protected]> Sent: Tuesday, October 18, 2022 12:45 PM To: Web Enabling the IBM i (AS/400 and iSeries) <[email protected]>; [email protected] Subject: Re: [WEB400] YAJL They aren't "extra" they are part of the HTTP protocol, it is telling the HTTP client how many bytes need to be received. It should not be included in the data that you process -- they are there just to tell the HTTP program how to receive the data, it should not be including them in the actual downloaded result. Something is wrong with the HTTP client that is calling out to the Apache. On 10/17/2022 9:25 PM, [email protected] wrote: > The program that is receiving the data is expecting pure JSON data to be returned. Instead is it receiving these extra bytes prior to the first { and is abending. > > -- This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/web400 or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/web400.