cURL / Mailing Lists / curl-library / Single Mail


Re: CURLOPT_INFILESIZE is not optional

From: Daniel Stenberg <>
Date: Sat, 4 Oct 2003 16:04:57 +0200 (CEST)

On Wed, 1 Oct 2003, Wei Weng wrote:

> I think I read it from the doc that says if you are going to do a upload,
> you don't have to specify CURLOPT_INFILESIZE, it is optional.

It is optional, but in many cases you want to specify it to make libcurl
behave better.

> However, in my practice, it seems that w/o specifying CURLOPT_INFILESIZE, I
> get an CURLE_PARTIAL_FILE error in the 2nd file I upload using the same CURL
> connection handler.

That sounds like a bug.

> Is that normal? hidden bug? wrong documentation?

What protocol are you using for upload? What libcurl version? Can you provide
source code that shows us how to repeat this problem?

 Daniel Stenberg -- curl: been grokking URLs since 1998
This email is sponsored by:ThinkGeek
Welcome to geek heaven.
Received on 2003-10-05