× 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'm confident my problem isn't a CCSID issue. My program passes one content-type and valid JSON into the IBM API. The client receives a different content-type, and the payload contains a bunch of garbage followed by my valid JSON. If the client removes the garbage at the beginning, my JSON is all there and 100% correct.


Thanks



________________________________
From: B Stone <bvstone@xxxxxxxxx>
Sent: Saturday, May 25, 2019 4:04 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Garbage in HTTP response

Justin

The HTTP server will normally convert EBCDIC to ASCII for certain content
types. application/<anything here> is not one of them.

For example, if you go to the DSPJSON example here:
http://erpgsdk.bvstools.com/

You'll see that for the eRPG SDK we specifically need to be able to set the
CCSID of the output so things would work.

Other "fixes" tried are text/json, but that's not the proper content type
for JSON.

You'll see how


Bradley V. Stone
www.bvstools.com<http://www.bvstools.com>
MAILTOOL Benefit #16 <https://www.bvstools.com/mailtool.html>: No external
"helper" PC system required. 100% IBM i native!



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.