1CURLINFO_SIZE_UPLOAD_T(3)  curl_easy_getinfo options CURLINFO_SIZE_UPLOAD_T(3)
2
3
4

NAME

6       CURLINFO_SIZE_UPLOAD_T - get the number of uploaded bytes
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode    curl_easy_getinfo(CURL   *handle,   CURLINFO_SIZE_UPLOAD_T,
12       curl_off_t *uploadp);
13

DESCRIPTION

15       Pass a pointer to a curl_off_t to receive the  total  amount  of  bytes
16       that were uploaded.
17

PROTOCOLS

19       All
20

EXAMPLE

22       CURL *curl = curl_easy_init();
23       if(curl) {
24         curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
25
26         /* Perform the request */
27         res = curl_easy_perform(curl);
28
29         if(!res) {
30           curl_off_t ul;
31           res = curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD_T, &ul);
32           if(!res) {
33             printf("Uploaded %" CURL_FORMAT_CURL_OFF_T " bytes\n", ul);
34           }
35         }
36       }
37

AVAILABILITY

39       Added in 7.55.0
40

RETURN VALUE

42       Returns  CURLE_OK  if the option is supported, and CURLE_UNKNOWN_OPTION
43       if not.
44

SEE ALSO

46       curl_easy_getinfo(3), curl_easy_setopt(3), CURLINFO_SIZE_DOWNLOAD_T(3),
47       CURLINFO_SIZE_UPLOAD(3),
48
49
50
51libcurl 7.69.1                  March 31, 2018       CURLINFO_SIZE_UPLOAD_T(3)
Impressum