Use curl instead of file_get_contents

Use curl instead of file_get_contents as some hosting environments block remote requests with this method.