I'll try to work with the caller and see what we can come up with about the incoming content-type.
Thanks everyone for the help!
From: Bradley Stone [mailto:bvstone@xxxxxxxxx]
Sent: Monday, January 16, 2017 3:47 PM
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Subject: Re: [WEB400] Read POST CGI data
That's about the best you can do.
What I do is check for text/ and then I know it's converted. adding the application/x-www-.... also is a good addition.
But most of my apps have dealt with JSON so I'm just being careful when someone sends text/json (which is invalid but used anyhow) vs application/json.
What I would ask is, why are you getting multipart/form-data. That's normally used for file uploads. If you have the option to tell them "that's an invalid content-type" maybe do that. :)
On Mon, Jan 16, 2017 at 3:29 PM, Justin Taylor <JUSTIN@xxxxxxxxxxxxx> wrote:
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2022 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
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.