Hi,
I'd like to check if a URL is protected by a Http Basic Authentication using javascript. Here is what I have so far :
function showFailure(){ alert("FAILED ") }
function showSuccess(){ alert("SUCCESS") }
var myRequest = new Request({
url: 'http://localhost/access_protected_HTTP_BASIC',
method: 'get',
onSuccess: showSuccess,
onFailure: showFailure
}).send();
But that actually opens the browser login popup to access the resource. Is there a way not to trigger that popup?
Thanks!
Note : I use mootools in this example but I'd take any javascript example that does the trick :)