added as suggested by Bob Schader
CURLINFO_SSL_VERIFYRESULT = CURLINFO_LONG + 13,
CURLINFO_FILETIME = CURLINFO_LONG + 14,
- CURLINFO_LASTONE = 15
+ CURLINFO_CONTENT_LENGTH_DOWNLOAD = CURLINFO_DOUBLE + 15,
+ CURLINFO_CONTENT_LENGTH_UPLOAD = CURLINFO_DOUBLE + 16,
+
+ CURLINFO_LASTONE = 17
} CURLINFO;
/*
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;
}