cURL / Mailing Lists / curl-library / Single Mail


Re: Error message from FTP operation

From: Daniel Stenberg <>
Date: Fri, 4 Jul 2003 17:48:09 +0200 (CEST)

On Thu, 3 Jul 2003, Wei Weng wrote:

> Is there an API that I can use to retrieve FTP response/error message from
> an FTP operation?
> For example, If I do the following:
> RNFR /temp/temp.txt
> 550 /temp/temp.txt: No such file or directory.
> I want to get the "/temp... no such file or directory." as an error message.

Nope, there's no such API in the current libcurl. I would be interested if you
can come up with a nice interface...

> Do I have to parse the returned headers (with the response code in the
> front) myself?

That's the only available approach right now.

 Daniel Stenberg -- curl: been grokking URLs since 1998
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.;at.asp_061203_01/01
Received on 2003-07-04