aboutsummaryrefslogtreecommitdiff
path: root/docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-06-15 15:26:00 +0200
committerng0 <ng0@infotropique.org>2017-08-22 15:27:56 +0000
commit2d4b3e28f13b5a77525bfa126a773f7285528964 (patch)
tree5b8e533ba280b79525a98f658ee720a9c6d2e344 /docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3
parent7faff70574ad26d31dca592ff745ff200b8bc5c8 (diff)
downloadgnurl-2d4b3e28f13b5a77525bfa126a773f7285528964.tar.gz
gnurl-2d4b3e28f13b5a77525bfa126a773f7285528964.tar.bz2
gnurl-2d4b3e28f13b5a77525bfa126a773f7285528964.zip
getinfo: return sizes as curl_off_t
This change introduces new alternatives for the existing six curl_easy_getinfo() options that return sizes or speeds as doubles. The new versions are named like the old ones but with an appended '_T': CURLINFO_CONTENT_LENGTH_DOWNLOAD_T CURLINFO_CONTENT_LENGTH_UPLOAD_T CURLINFO_SIZE_DOWNLOAD_T CURLINFO_SIZE_UPLOAD_T CURLINFO_SPEED_DOWNLOAD_T CURLINFO_SPEED_UPLOAD_T Closes #1511
Diffstat (limited to 'docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3')
-rw-r--r--docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.35
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3 b/docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3
index 4d285e260..6253fed79 100644
--- a/docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3
+++ b/docs/libcurl/opts/CURLINFO_SIZE_DOWNLOAD.3
@@ -33,6 +33,9 @@ downloaded. The amount is only for the latest transfer and will be reset
again for each new transfer. This counts actual payload data, what's also
commonly called body. All meta and header data are excluded and will not be
counted in this number.
+
+\fICURLINFO_SIZE_DOWNLOAD_T(3)\fP is a newer replacement that returns a more
+sensible variable type.
.SH PROTOCOLS
All
.SH EXAMPLE
@@ -60,3 +63,5 @@ Added in 7.4.1
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
.SH "SEE ALSO"
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), "
+.BR CURLINFO_SIZE_DOWNLOAD_T "(3), "
+.BR CURLINFO_SIZE_UPLOAD_T "(3), "