diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-08-20 15:41:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-08-20 15:41:45 +0000 |
commit | d00e4a377b4a7c432c15670b9316ceb53a9ad08c (patch) | |
tree | bc8be3107341c3247dd688aa74011c3b4371b18f | |
parent | afc6ade2b909d44ab54af13ee172c09db3737c7b (diff) |
store the FTP response code in the httpcode variable
-rw-r--r-- | lib/ftp.c | 3 | ||||
-rw-r--r-- | lib/urldata.h | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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 2592357d2..907bb5dc6 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 |