"HTTP request failed" means that the URL you put in file_get_contents() was not found, or had some other problem such that the URL could not be accessed. Make sure your URL is valid and publically accessible - try going to the URL in your browser.