cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] ftp response codes

From: Gerd v. Egidy <lists_at_egidy.de>
Date: Wed, 20 Aug 2003 10:33:58 +0200

Hi,

I had to issue some custom ftp commands and wanted to check on the response
code. I've seen that we have a CURLINFO_HTTP_CODE but no corresponding info
for ftp. So I have made a patch that stores the last ftp response code at the
same place like the http codes - so it can be retrieved with
CURLINFO_HTTP_CODE.

Maybe it would be cleaner to introduce a new name for this, like
CURLINFO_RESPONSE_CODE or something like this. But it's not on me to decide
this.

Feedback welcome and feel free to include this patch into libcurl.

Kind regards,

Gerd

-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104

Received on 2003-08-20