Use file_get_contents when request fails