[Webkit-unassigned] [Bug 13075] XMLHttpRequest with failed authentication should set status to 401
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 15 08:18:15 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=13075
------- Comment #2 from jcostell at tibco.com 2007-03-15 08:18 PDT -------
Here's 4:
var r = new XMLHttpRequest();
r.open("GET", "http://gi.tibco.com/tests/auth2/data1.xml", false);
r.send();
assertEquals(401, r.status);
var r = new XMLHttpRequest();
r.open("GET", "http://gi.tibco.com/tests/auth2/data1.xml", false, "badname",
"passpw");
r.send();
assertEquals(401, r.status);
var r = new XMLHttpRequest();
r.open("GET", "http://gi.tibco.com/tests/auth2/data1.xml", true);
r.onreadystatechange = function() {
if (r.readyState == 4) {
assertEquals(401, r.status);
}
};
r.send();
var r = new XMLHttpRequest();
r.open("GET", "http://gi.tibco.com/tests/auth2/data1.xml", true, "badname",
"passpw");
r.onreadystatechange = function() {
if (r.readyState == 4) {
assertEquals(401, r.status);
}
};
r.send();
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list