1 <html><head></head><body>
3 <p>Test bug
15530: XMLHttpRequest should not support certain methods
</p>
4 <p>Should see a test for the TRACE, TRACK and CONNECT methods :
</p>
7 <script type=
"text/javascript">
10 document
.getElementById("ans").appendChild(document
.createTextNode(message
));
13 function insertNewLine()
15 document
.getElementById("ans").appendChild(document
.createElement("br"));
18 function testException(method
)
21 xhr
.open(method
, "resources/1251.html", false);
28 if (window
.testRunner
)
29 testRunner
.dumpAsText();
33 if (window
.XMLHttpRequest
) {
34 xhr
= new XMLHttpRequest();
37 xhr
= new ActiveXObject("Msxml2.XMLHTTP");
39 xhr
= new ActiveXObject("Microsoft.XMLHTTP");
44 testException("TRACE");
48 testException("TRACK");
52 testException("CONNECT");
55 if (window
.testRunner
)
56 testRunner
.notifyDone();