Soundcloud API section 2 requests ... What am I missing?


#1

Am I missing something with this?? I can't find whats wrong with this code, but it throws an error no matter what..

// Add your code below this line!
var xhr = new XMLHttpRequest();
xhr.open("GET", "http://www.codecademy.com/", false);
xhr.send();


// Add your code above this line!

console.log(xhr.status);
console.log(xhr.statusText);

I keep getting this error:

NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://www.codecademy.com/'.

#2

Change it to https. The documentation is wrong/outdated.