cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: retreive messages

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 3 Jan 2002 17:11:08 +0100 (MET)

On Thu, 3 Jan 2002, raoul cridlig wrote:

> How to retreive this kind of information (between "ftp> put titi" and
> "ftp>" while uploading with libcurl?

Well, you actually can't get the FTP server's response lines (those 200, 150
and 226 lines) easily. Is that what you would want? If so, how would you
prefer to have them received if you would decide?

> ftp> put titi
> 200 PORT command okay.
> 150 Opening data connection for titi (192.168.1.1,11715).
> 226 JOB = 1142756
> 226 Transfer complete.
> 62 bytes sent in less than one second.

The information that you uploaded 62 bytes is of course easily counted if you
provide a read callback, and the timing is either easily counted by yourself
or you can get timing info using curl_easy_getinfo().

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-01-03