htmlster
03-03-2011, 05:28 PM
Hi,
I'm making a ajax call as
xmlhttp.setRequestHeader ("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.open ("POST", url);
xmlhttp.send (parameters);
url, parameters are already declared.
When this code is executed. post works fine (parameters are being set in application) in chrome, but not in firefox.
When i looked through the contents through sniffer (wireshark).
I found out that
in Firefox:
Content-Type: application/x-www-form-urlencoded; char-set: UTF-8
Where as in chrome:
Content-Type: application/x-www-form-urlencoded
does char-set affects post call?. If yes, how can i call request header to not to set "char-set"
Can any one please let me know how i can proceed with this.
I'm making a ajax call as
xmlhttp.setRequestHeader ("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.open ("POST", url);
xmlhttp.send (parameters);
url, parameters are already declared.
When this code is executed. post works fine (parameters are being set in application) in chrome, but not in firefox.
When i looked through the contents through sniffer (wireshark).
I found out that
in Firefox:
Content-Type: application/x-www-form-urlencoded; char-set: UTF-8
Where as in chrome:
Content-Type: application/x-www-form-urlencoded
does char-set affects post call?. If yes, how can i call request header to not to set "char-set"
Can any one please let me know how i can proceed with this.