curl-library
Re: curlopt_seekfunction
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 1 Oct 2016 07:35:43 +0200
Date: Sat, 1 Oct 2016 07:35:43 +0200
On Fri, Sep 30, 2016 at 11:39:26PM +0000, Colin Ngam wrote:
> Hi,
>
>
>
> Why are you using *userp as a curl handle?
>
>
>
> CURLcode curl_easy_setopt(CURL *handle, CURLoption option, parameter);
Indeed. And even if it is a curl handle (you didn't show that part of your
code), then it makes no sense to use it as a FILE* handle.
res = curl_easy_setopt(d_curl, CURLOPT_SEEKDATA, *userp);
>>> Dan
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-10-01