Replace file_get_contents with curl command