Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

Learn More

Firefox is add 'charset=UTF-8' to the content-type when using AJAX

  • 1 답장
  • 21 이 문제를 만남
  • 29 보기
  • 최종 답변자: cor-el

more options

I am using XMLHttpRequest to send data to the server, and Firefox is adding 'charser=UTF-8' to the end of the content-type header attribute. I have tried to over write the content-type by adding "mypostrequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");" But 'charser=UTF-8' is still added.

This happened

Every time Firefox opened

I am using XMLHttpRequest to send data to the server, and Firefox is adding 'charser=UTF-8' to the end of the content-type header attribute. I have tried to over write the content-type by adding "mypostrequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");" But 'charser=UTF-8' is still added. == This happened == Every time Firefox opened

모든 댓글 (1)

more options

Try http://forums.mozillazine.org/viewtopic.php?p=6318215#p6318215

Please do not post in old topics. If you ned help then create a new post on the MozillaZine Web Development/Standards Evangelism forum. The helpers at that forum are more knowledgeable about web development issues. You need to register at the MozillaZine forum site in order to post at that forum. See http://forums.mozillazine.org/viewforum.php?f=25