"ansh kumar" <[email protected]> wrote:

Okay I've removed \0 from the buffer size.
1) I want to know why I'm getting following error if I use
CURLOPT_INFILESIZE_LARGE option instead of CURLOPT_INFILESIZE :

MAIL FROM:<[email protected]> SIZE=141949047089924518

Did you cast the CURLOPT_INFILESIZE_LARGE argument (the file_size)
to 64-bit? And are you sure curl_off_t is 64-bit on your platform?

You can do:
curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, (unsigned long long)file_size);

to make sure the arg on the stack is correct.

--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to