cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: detecting the problem while transferring data

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 3 Jun 2009 15:33:05 +0200 (CEST)

On Mon, 1 Jun 2009, yuva raj wrote:

> I connected to a ftp server using curl and tried to download a file from the
> server. In the middle of download I disconnected the connection from
> server.
>
> curl stops there without exiting for a long time. Can anyone suggest me any
> options that are available in curl, by which I can get the exact error code
> in such case.

You need to use one of the time-out options then probably or --keepalive-time.

> I mean, if there is any problem when data transfer is happening, curl must
> let me know.

A connection doesn't have to transfer data so an idle transfer is not a
problem by definition.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-06-03