cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl-7.13.1, CURLOPT_READDATA doesn't set any options?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 5 Apr 2005 09:07:47 +0200 (CEST)

On Tue, 5 Apr 2005, Admir Efendic wrote:

> Upon checking source code for 7.13.1 it seems that in "CURLcode
> Curl_setopt(struct SessionHandle *data, CURLoption option, ...)" in
> "/curl-7.13.1/lib/url.c: line 926" there is no case for CURLOPT_READDATA,
> but there is a case for CURLOPT_INFILE, which according to documentation is
> the old-style option.

*_INFILE is former name for *_READDATA (but still used on numerous places
within libcurl). If you check the curl/curl.h header file closer, you'll see
this:

         #define CURLOPT_READDATA CURLOPT_INFILE

I changed it to READDATA to fit the generic libcurl option naming standard
with *FUNCTION and *DATA for callbacks and their associated data.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-04-05