<html> | |
<body> | |
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=3565">bug 3565</a> | |
- posting data via XMLHttpRequest doesn't work (wrong Content-Type).</p> | |
<p>Should be text/plain;charset=UTF-8:</p> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
objXmlHttp = new XMLHttpRequest; | |
objXmlHttp.open("POST", "print-content-type.cgi", false); | |
objXmlHttp.send(""); | |
document.write("<pre>" + objXmlHttp.responseText + "</pre>"); | |
</script> | |
</body> | |
</html> |