In PHP API we could use curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); but how to translate it into C? I tried curl_easy_setopt(curl_handle, CURLOPT_RETURNTRANSFER, true); but failed.
In PHP API we could use curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); but how to translate it
Share
There’s no
CURLOPT_RETURNTRANSFERin libcurl C API. You can do that with a callback function, it’s one of libcurls examples: get a remote file in memory only.