cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: cURL truncating upload file

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 8 Oct 2004 15:21:41 +0200 (CEST)

On Thu, 7 Oct 2004, James Smith wrote:

>> How much of its data has curl sent when it hangs? To me, it looks as if it
>> sends its data and then sits around waiting for a server response it never
>> gets (and there is no default timeout for this).
>
> With files of this size it seems to send all of it, however if I increase
> the file size (these are between 10k and 13k for 100 lines) to arround 100k
> or more then the files get cut short during the upload, could this be for
> the same reason (ie: a response not being received so the rest of the file
> not getting sent)?

No, the response is not sent by the server until the whole request has been
received by it. So, if something prevents the whole request to get sent, the
response is never sent either.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-10-08