Replaced file_get_contents by CURL