Hi,
Back in June 2006, I asked about the content-type header as it relates to a
form post from a mobile phone browser. The original message that I sent can be
seen here: http://mail-archives.apache.org/mod_mbox/perl-asp/200606.mbox/[EMAIL
PROTECTED]
In a nutshell, in most situations, the browser will send the content-type
header as 'application/x-www-form-urlencoded' but some browsers under certain
circumstances, add additional information at the end of the content-type header
string. In particular, Firefox 3 is sending 'application/x-www-form-urlencoded;
charset=UTF-8' when a POST request is initiated through AJAX. This causes the
form elements being submitted in AJAX to be ignored.
I manually did a change on the Apache::ASP::Request module to correct this
problem, changing the line
if($headers_in->get('Content-Type') eq 'application/x-www-form-urlencoded')
to
if($headers_in->get('Content-Type') =~
m|^application/x-www-form-urlencoded|) {
which solved the problem. However, as the change wasn't bundled into
Apache::ASP back then, I'm wondering if there's something else I should be
doing to solve this problem?
Thanks for any feedback.
.rw
_________________________________________________________________