get upload speed
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_SPEED_UPLOAD, double *speed);
Pass a pointer to a double to receive the average upload speed that curl
measured for the complete upload. Measured in bytes/second.
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.