× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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 <web400@xxxxxxxxxxxxxxxx>
Sent: Tuesday, October 18, 2022 12:45 PM
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxxxxxxxx>; smith5646midrange@xxxxxxxxx
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, smith5646midrange@xxxxxxxxx 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.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.