cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: will CURLOPT_TIMEOUT work in case of partial download

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 27 Feb 2010 00:16:36 +0100 (CET)

On Thu, 25 Feb 2010, Sachin Gole wrote:

> I am using curl library for downloading xml data.

Then consider using the curl-library mailing list instead. This is the list
for users of the curl tool.

> curl_easy_setopt(curl,CURLOPT_TIMEOUT,30);
>
> while downloading xml file, i got 50 % download then server stops sending
> data in that case will i get timeout as its partial download and further
> server is not processing ?
>
> if download is in progress and timeout occurs then will curl internally
> update timeout ?

The timeout is a fixed time where the transfer will be stopped. No matter
what. If you want to make it depending on transfer speed or similar, then you
need to use other options.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-27