aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-02-04 20:03:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-02-04 20:03:30 +0000
commit6f7c70fbbc28fce5903a4d0dfb8bbddf04eae48f (patch)
tree7e4c08f955e18913c64925ee6b13401d81ad78bd /lib
parent9ab5d30e3bd82e8e02adf5c67c505fb1aa316373 (diff)
CURLINFO_CONTENT_LENGTH_DOWNLOAD and CURLINFO_CONTENT_LENGTH_UPLOAD were
added as suggested by Bob Schader
Diffstat (limited to 'lib')
-rw-r--r--lib/getinfo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c
index 140736294..400087183 100644
--- a/lib/getinfo.c
+++ b/lib/getinfo.c
@@ -103,6 +103,12 @@ CURLcode curl_getinfo(CURL *curl, CURLINFO info, ...)
case CURLINFO_SSL_VERIFYRESULT:
*param_longp = data->ssl.certverifyresult;
break;
+ case CURLINFO_CONTENT_LENGTH_DOWNLOAD:
+ *param_doublep = data->progress.size_dl;
+ break;
+ case CURLINFO_CONTENT_LENGTH_UPLOAD:
+ *param_doublep = data->progress.size_ul;
+ break;
default:
return CURLE_BAD_FUNCTION_ARGUMENT;
}