Fix "Warning: curl_setopt(): cannot represent a stream of type MEMORY as a STDIO FILE*"