, "jameschao122" <jchao@...> wrote:
> Hi Thomas,
> I'm using Apache::ASP and it seems like the problem lies with that.
> According to
> harset%3Dutf-8-t1834467.html, it seems like Apache::ASP expects the
> content type to be exactly "application-x-www-form-urlencoded", even
> though the HTTP specs allow for more than that.
> So, I'll just have to live with the workaround I've found. It would be
> nice if there was a better API for changing this though (or am I using
You have the correct way to turn off the header and setting your own.
// If you call resetDefaultHeaders here,
// you'll lose the custom header "X-Requested-With:XMLHttpRequest".
// The ability to turn the default POST header was to
// accommodated those who did not want to use this header
// as part of their POST request.
And, if you are interested: