blob: b5fcc0e1370fb643cb4d7beedb9990fbbd9affbb [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var formData = new FormData();
formData.append("data", new Blob(["blobdata"]));
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
alert("Response: " + xhr.responseText);
if (window.testRunner)
testRunner.notifyDone();
}
};
xhr.open("POST", "resources/basic-echo-post.py", true, "testuser", "testpassword");
xhr.send(formData);
</script>