cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: File transfer using http post

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 2 Mar 2007 13:59:18 +0100 (CET)

On Fri, 2 Mar 2007, madhusudhan.nanjappa_at_wipro.com wrote:

> curl_easy_setopt(curl,
> CURLOPT_INFILESIZE,(curl_off_t)file_info.st_size);

Bad! If you use CURLOPT_INFILESIZE you must pass a long. If you want to pass a
curl_off_t, you must use CURLOPT_INFILESIZE_LARGE.

-- 
  Daniel
Received on 2007-03-02