API no response using XMLHTTPREQUEST()
The following code does not work from my Godaddy hosting account(username/password edited for this post). It does work with other remote URLs. The "req.send(); is not working with this URL as the alert command after the send never happens. Any comments would be appreciated.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
</body>
<script>
var req = new XMLHttpRequest()
req.open('GET', 'https://accounts.zoho.com/apiauthtoken/nb/create?SCOPE=zohopeople/recruitapi&EMAIL_ID=username&PASSWORD=mypassword', false);
alert(req.status);
req.send();
alert(req.status);
alert(req.responseText);
if(req.status == 200) {
alert(req.responseText);
}
</script>
</html>