cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET