blob: 7a75d4b6208942cc1f1b3ed78f8e09276e8625af [file] [log] [blame]
<html>
<body>
<pre id='console'></pre>
<script type="text/javascript">
if (window.testRunner)
testRunner.dumpAsText();
function log(message)
{
document.getElementById('console').appendChild(document.createTextNode(message + "\n"));
}
try {
var xhr = new XMLHttpRequest;
xhr.open("POST", "http://localhost:8000/xmlhttprequest/resources/access-control-basic-whitelist-request-headers.cgi", false);
xhr.setRequestHeader("Accept", "*");
xhr.setRequestHeader("Accept-Language", "ru");
xhr.setRequestHeader("Content-Language", "ru");
xhr.setRequestHeader("Content-Type", "text/plain");
xhr.send("");
log(xhr.responseText);
} catch (ex) {
log("Unexpected exception: " + ex);
}
</script>
</body>
</html>