Subject: RE: File transfer using http post
From: <[email-masked]>
To: <[email-masked]>
Date: Fri, 2 Mar 2007 19:08:34 +0530

Yes..

I was using CURLOPT_INFILESIZE_LARGE. But that was not working either. The Content-Length field was shown as 0. And the server was showing an incoming connection as application/x-www-form-urlencoded. Should'nt it be of multipart/form-data type?

Please dont mind if the questions are too stupid from my side :(

Thanks for your time!!

Regards,
Madhu 

-----Original Message-----
From: [email-masked] on behalf of Daniel Stenberg
Sent: Fri 3/2/2007 6:29 PM
To: libcurl development
Subject: Re: File transfer using http post
 
On Fri, 2 Mar 2007, [email-masked] 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