From: Daniel Stenberg Date: Wed, 20 Aug 2003 15:41:45 +0000 (+0000) Subject: store the FTP response code in the httpcode variable X-Git-Tag: curl-7_10_8~268 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d00e4a377b4a7c432c15670b9316ceb53a9ad08c;p=thirdparty%2Fcurl.git store the FTP response code in the httpcode variable --- diff --git a/lib/ftp.c b/lib/ftp.c index a79f94277f..ed4709d923 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -391,6 +391,9 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */ if(ftpcode) *ftpcode=code; /* return the initial number like this */ + /* store the latest code for later retrieval */ + conn->data->info.httpcode=code; + return result; } diff --git a/lib/urldata.h b/lib/urldata.h index 2592357d26..907bb5dc63 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -565,7 +565,7 @@ struct connectdata { * Struct to keep statistical and informational data. */ struct PureInfo { - int httpcode; + int httpcode; /* Recent HTTP or FTP response code */ int httpproxycode; int httpversion; long filetime; /* If requested, this is might get set. Set to -1 if the time