« JSRS another PHP and AJAX implementation | Main | Best Practices: Implementing javascript for rich internet applications »

Possible AJAX IE Exploint, the evil AJAX

I don't have Internet explorer to test it, but anakin pointed in his blog to a possible bug using XMLHttpRequest.

Internet Explorer looks to hang up if you send a utf-8 header in response to XMLHttpRequest(). The bug have been tested on IE 6.0, Windows XP Home, XP Professional, 2000 and 2003 OS.

The code that have been used to test is listed below :

Bookmark this article at these sites
Comments
1

You are sending an incorrect header:

header('Content-type: text/html; encoding=utf-8');

should be

header('Content-type: text/html; Charset=utf-8');

IE simply does not know what to do with your bad written header .

2

Actually a bad header should not result in hanging up. Bad handling of unexpected data is indeed a problem.
Does anybody know if someone dug deeper into this issue? I also stumbled across this behaviour of IE by accident ;)

Post a comment





(Email will remain hidden)





Please enter the security code you see here




Related entries
Email to a friend
Email this article to:


Your email address:


Message (optional):