w.py", false);
      xhr.setRequestHeader("Content-Type", "text/plain");
      xhr.send("PASS: PUT data received");

      assert_equals(xhr.responseText, "PASS: Cross-domain access allowed.\nPASS: PUT data received");

      xhr.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN +
          "/xhr/resources/access-control-basic-put-allow.py", false);
      xhr.setRequestHeader("Content-Type", "application/xml");

      assert_throws_dom("NetworkError", () => xhr.send("FAIL: PUT data received"));
      assert_eq