I'm using node js to make a request,
var getdb = new XMLHttpRequest();
var url = "url";
getdb.open('GET', url, true);
getdb.onreadystatechange = function() {
if(getdb.readyState == 4 && getdb.status == 200)
console.log("conn ok");
}
getdb.send();
If I open the url in browser it works, but if I call it with code, this is the response:
This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support
The page is a simple php page with a db connection and some echo.
i found the problem, my free web hoster (profreehost.com) had disabled the programmatly requests, because they doesn't wont any abuse.