--------------------------------------------------------------------------------------------------- upload to box - chrome - no proxy 50MB in 6.41sec 50MB in 6.67sec 50MB in 5.78sec 50MB in 6.20sec 50MB in 6.38sec --------------------------------------------------------------------------------------------------- upload to box - chrome - proxy set 50MB in 8.54sec 50MB in 7.58sec 50MB in 5.87sec 50MB in 9.00sec 50MB in 6.48sec --------------------------------------------------------------------------------------------------- upload to box - curl download from https://curl.haxx.se/download.html#Win64 - no proxy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\curl-7.57.0-wi n64-mingw\bin>curl https://upload.box.com/api/2.0/files/content -H "Authorizatio n:Bearer access~~~~~~~~~~~~~~~~~~~~~~~~~~" -X POST -F attributes="{\"name\":\"ul speedtest\",\"parent\":{\"id\":\"0\"}}" -F file=@ulspeedtest -o result.txt % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 50.0M 100 1058 100 50.0M 6 314k 0:02:56 0:02:43 0:00:13 271k 100 50.0M 100 1058 100 50.0M 6 316k 0:02:56 0:02:42 0:00:14 271k 100 50.0M 100 1058 100 50.0M 6 320k 0:02:56 0:02:40 0:00:16 265k 100 50.0M 100 1058 100 50.0M 7 365k 0:02:31 0:02:20 0:00:11 314k 100 50.0M 100 1058 100 50.0M 7 360k 0:02:31 0:02:22 0:00:09 272k --------------------------------------------------------------------------------------------------- upload to box - curl download from https://curl.haxx.se/download.html#Win64 - proxy set ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\curl-7.57.0-wi n64-mingw\bin>curl https://upload.box.com/api/2.0/files/content -H "Authorizatio n:Bearer access~~~~~~~~~~~~~~~~~~~~~~~~~~" -X POST --proxy http://127.0.0.1:3213 -F attributes="{\"name\":\"ulspeedtest\",\"parent\":{\"id\":\"0\"}}" -F file=@u lspeedtest -o result.txt % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 50.0M 100 1058 100 50.0M 88 4266k 0:00:12 0:00:12 --:--:-- 201k 100 50.0M 100 1058 100 50.0M 37 1828k 0:00:28 0:00:28 --:--:-- 1188k 100 50.0M 100 1058 100 50.0M 117 5688k 0:00:09 0:00:09 --:--:-- 9652k 100 50.0M 100 1058 100 50.0M 132 6400k 0:00:08 0:00:08 --:--:-- 8721k 100 50.0M 100 1058 100 50.0M 70 3413k 0:00:15 0:00:15 --:--:-- 6188k --------------------------------------------------------------------------------------------------- upload to box - curl compiled myself - no proxy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\libcurl-vc8-x86-release-dll-ssl-dll-zl ib-dll-ipv6\bin>curl https://upload.box.com/api/2.0/files/content -H "Authorizat ion:Bearer access~~~~~~~~~~~~~~~~~~~~~~~~~~" -X POST --cacert cacert.pem -F attr ibutes="{\"name\":\"ulspeedtest\",\"parent\":{\"id\":\"0\"}}" -F file=@ulspeedte st -o result.txt % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 50.0M 100 1058 100 50.0M 6 314k 0:02:56 0:02:43 0:00:13 258k 100 50.0M 100 1058 100 50.0M 7 345k 0:02:31 0:02:28 0:00:03 321k 100 50.0M 100 1058 100 50.0M 7 363k 0:02:31 0:02:21 0:00:10 305k 100 50.0M 100 1058 100 50.0M 6 324k 0:02:56 0:02:38 0:00:18 285k 100 50.0M 100 1058 100 50.0M 7 365k 0:02:31 0:02:20 0:00:11 308k --------------------------------------------------------------------------------------------------- upload to box - curl compiled myself - proxy set ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\libcurl-vc8-x86-release-dll-ssl-dll-zl ib-dll-ipv6\bin>curl https://upload.box.com/api/2.0/files/content -H "Authorizat ion:Bearer access~~~~~~~~~~~~~~~~~~~~~~~~~~" -X POST --cacert cacert.pem --proxy http://127.0.0.1:3213 -F attributes="{\"name\":\"ulspeedtest\",\"parent\":{\"id \":\"0\"}}" -F file=@ulspeedtest -o result.txt % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 50.0M 100 1058 100 50.0M 55 2694k 0:00:19 0:00:19 --:--:-- 3239k 100 50.0M 100 1058 100 50.0M 48 2327k 0:00:22 0:00:22 --:--:-- 1961k 100 50.0M 100 1058 100 50.0M 105 5120k 0:00:10 0:00:10 --:--:-- 9434k 100 50.0M 100 1058 100 50.0M 58 2844k 0:00:18 0:00:18 --:--:-- 5586k 100 50.0M 100 1058 100 50.0M 117 5688k 0:00:09 0:00:09 --:--:-- 4332k --------------------------------------------------------------------------------------------------- upload to box - PostUpload.c - no proxy edit PostUpload.c: curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L); curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, progress_callback); curl_easy_setopt(curl, CURLOPT_XFERINFODATA, &progress_data); progress_data.session = curl; /* test - upload file to box */ header_list = curl_slist_append(header_list, "Authorization: Bearer MDU2VZdbuWl8aSKuWyA34yNCEldLODqO"); curl_easy_setopt(curl, CURLOPT_HTTPHEADER, header_list); curl_httppost *post = NULL; curl_httppost *last = NULL; curl_formadd(&post, &last, CURLFORM_COPYNAME, "attributes", CURLFORM_COPYCONTENTS, "{\"name\":\"ulspeedtest\", \"parent\":{\"id\":\"0\"}}", CURLFORM_END); curl_formadd(&post, &last, CURLFORM_STREAM, fp, CURLFORM_PTRNAME, "file", CURLFORM_FILENAME, "ulspeedtest", CURLFORM_CONTENTLEN, (curl_off_t)stbuf.st_size, CURLFORM_END); curl_easy_setopt(curl, CURLOPT_HTTPPOST, post); Transfer rate: 361 KB/sec (52429188 bytes in 142 seconds) Other data rate units: 2.95 Mbps 2953.75 kbps 0.35 MiB/s 360.57 KiB/s 369.22 kB/s 369219.00 B/s Transfer rate: 316 KB/sec (52429188 bytes in 162 seconds) Other data rate units: 2.59 Mbps 2589.09 kbps 0.31 MiB/s 316.05 KiB/s 323.64 kB/s 323636.00 B/s Transfer rate: 318 KB/sec (52429188 bytes in 161 seconds) Other data rate units: 2.61 Mbps 2605.18 kbps 0.31 MiB/s 318.01 KiB/s 325.65 kB/s 325647.00 B/s Transfer rate: 318 KB/sec (52429188 bytes in 161 seconds) Other data rate units: 2.61 Mbps 2605.18 kbps 0.31 MiB/s 318.01 KiB/s 325.65 kB/s 325647.00 B/s Transfer rate: 322 KB/sec (52429188 bytes in 160 seconds) Other data rate units: 2.64 Mbps 2637.94 kbps 0.31 MiB/s 322.01 KiB/s 329.74 kB/s 329743.00 B/s --------------------------------------------------------------------------------------------------- upload to box - PostUpload.c - proxy set add code to PostUpload.c before: /* test - proxy */ curl_easy_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); curl_easy_setopt(curl, CURLOPT_PROXY, "127.0.0.1:3213"); Transfer rate: 1896 KB/sec (52429188 bytes in 27 seconds) Other data rate units: 15.53 Mbps 15534.57 kbps 1.85 MiB/s 1896.31 KiB/s 1941.82 kB/s 1941821.00 B/s Transfer rate: 1896 KB/sec (52429188 bytes in 28 seconds) Other data rate units: 15.53 Mbps 15534.57 kbps 1.85 MiB/s 1896.31 KiB/s 1941.82 kB/s 1941821.00 B/s Transfer rate: 4267 KB/sec (52429188 bytes in 13 seconds) Other data rate units: 34.95 Mbps 34952.79 kbps 4.17 MiB/s 4266.70 KiB/s 4369.10 kB/s 4369099.00 B/s Transfer rate: 3938 KB/sec (52429188 bytes in 13 seconds) Other data rate units: 32.26 Mbps 32264.11 kbps 3.85 MiB/s 3938.49 KiB/s 4033.01 kB/s 4033014.00 B/s Transfer rate: 7314 KB/sec (52429188 bytes in 7 seconds) Other data rate units: 59.92 Mbps 59919.07 kbps 7.14 MiB/s 7314.34 KiB/s 7489.88 kB/s 7489884.00 B/s