/curl/src/ |
H A D | tool_progress.c | 34 static char *max5data(curl_off_t bytes, char *max5) in max5data() argument 42 if(bytes < CURL_OFF_T_C(100000)) in max5data() 43 msnprintf(max5, 6, "%5" CURL_FORMAT_CURL_OFF_T, bytes); in max5data() 45 else if(bytes < CURL_OFF_T_C(10000) * ONE_KILOBYTE) in max5data() 48 else if(bytes < CURL_OFF_T_C(100) * ONE_MEGABYTE) in max5data() 51 CURL_FORMAT_CURL_OFF_T "M", bytes/ONE_MEGABYTE, in max5data() 54 else if(bytes < CURL_OFF_T_C(10000) * ONE_MEGABYTE) in max5data() 58 else if(bytes < CURL_OFF_T_C(100) * ONE_GIGABYTE) in max5data() 61 CURL_FORMAT_CURL_OFF_T "G", bytes/ONE_GIGABYTE, in max5data() 64 else if(bytes < CURL_OFF_T_C(10000) * ONE_GIGABYTE) in max5data() [all …]
|
H A D | tool_cb_wrt.c | 126 outs->bytes = 0; in tool_create_output_file() 141 size_t bytes = sz * nmemb; in tool_write_cb() local 158 if(bytes > (size_t)CURL_MAX_HTTP_HEADER) { in tool_write_cb() 165 if(bytes > (size_t)CURL_MAX_WRITE_SIZE) { in tool_write_cb() 184 if(!outs->fopened && outs->bytes) in tool_write_cb() 204 if(is_tty && (outs->bytes < 2000) && !config->terminal_binary_ok) { in tool_write_cb() 206 if(memchr(buffer, 0, bytes)) { in tool_write_cb() 223 DWORD rlen = (DWORD)bytes; in tool_write_cb() 344 rc = bytes; in tool_write_cb() 356 if(bytes == rc) in tool_write_cb() [all …]
|
/curl/lib/ |
H A D | curl_des.c | 51 void Curl_des_set_odd_parity(unsigned char *bytes, size_t len) in Curl_des_set_odd_parity() argument 56 unsigned char b = bytes[i]; in Curl_des_set_odd_parity() 63 bytes[i] |= 0x01; in Curl_des_set_odd_parity() 65 bytes[i] &= 0xfe; in Curl_des_set_odd_parity()
|
H A D | noproxy.c | 82 unsigned int bytes; in Curl_cidr6_match() local 90 bytes = bits / 8; in Curl_cidr6_match() 92 if((bytes > 16) || ((bytes == 16) && rest)) in Curl_cidr6_match() 98 if(bytes && memcmp(address, check, bytes)) in Curl_cidr6_match() 100 if(rest && !((address[bytes] ^ check[bytes]) & (0xff << (8 - rest)))) in Curl_cidr6_match()
|
H A D | progress.c | 68 static char *max5data(curl_off_t bytes, char *max5) in max5data() argument 76 if(bytes < CURL_OFF_T_C(100000)) in max5data() 77 msnprintf(max5, 6, "%5" FMT_OFF_T, bytes); in max5data() 79 else if(bytes < CURL_OFF_T_C(10000) * ONE_KILOBYTE) in max5data() 82 else if(bytes < CURL_OFF_T_C(100) * ONE_MEGABYTE) in max5data() 85 FMT_OFF_T "M", bytes/ONE_MEGABYTE, in max5data() 88 else if(bytes < CURL_OFF_T_C(10000) * ONE_MEGABYTE) in max5data() 92 else if(bytes < CURL_OFF_T_C(100) * ONE_GIGABYTE) in max5data() 95 FMT_OFF_T "G", bytes/ONE_GIGABYTE, in max5data() 98 else if(bytes < CURL_OFF_T_C(10000) * ONE_GIGABYTE) in max5data() [all …]
|
H A D | curl_multibyte.c | 70 int bytes = WideCharToMultiByte(CP_UTF8, 0, str_w, -1, in curlx_convert_wchar_to_UTF8() local 72 if(bytes > 0) { in curlx_convert_wchar_to_UTF8() 73 str_utf8 = malloc(bytes); in curlx_convert_wchar_to_UTF8() 75 if(WideCharToMultiByte(CP_UTF8, 0, str_w, -1, str_utf8, bytes, in curlx_convert_wchar_to_UTF8()
|
/curl/tests/data/ |
H A D | test1559 | 37 CURLOPT_URL 10000000 bytes URL == 43 38 CURLOPT_POSTFIELDS 10000000 bytes data == 0 39 CURLUPART_URL 10000000 bytes URL == 3 (Malformed input to a URL function) 40 CURLUPART_SCHEME 10000000 bytes scheme == 3 (Malformed input to a URL function) 41 CURLUPART_USER 10000000 bytes user == 3 (Malformed input to a URL function)
|
H A D | test1117 | 16 Accept-Ranges: bytes 26 Accept-Ranges: bytes 27 Content-Range: bytes 10-18/155 57 Accept-Ranges: bytes 64 Accept-Ranges: bytes 65 Content-Range: bytes 10-18/155 75 Range: bytes=10-22 81 Range: bytes=10-22
|
H A D | test1043 | 16 Accept-Ranges: bytes 18 Content-Range: bytes 40-99/100 38 Accept-Ranges: bytes 40 Content-Range: bytes 40-99/100 76 Range: bytes=40-
|
H A D | test1151 | 14 # 3000 bytes name + 1096 bytes content is fine 15 # 3000 bytes name + 1097 bytes content is NOT OK 16 # 4096 bytes name + 1 byte content is NOT OK 17 # 4094 bytes name + 1 byte content is fine
|
H A D | test194 | 19 Accept-Ranges: bytes 21 Content-Range: bytes */87 34 Accept-Ranges: bytes 36 Content-Range: bytes */87 62 Range: bytes=87-
|
H A D | test92 | 19 Accept-Ranges: bytes 21 Content-Range: bytes */87 34 Accept-Ranges: bytes 36 Content-Range: bytes */87 60 Range: bytes=87-
|
H A D | test188 | 25 Content-Range: bytes 50- 38 Content-Range: bytes 50- 63 Range: bytes=50- 69 Range: bytes=50-
|
H A D | test164 | 20 Accept-Ranges: bytes 26 Content-range: bytes 0-10/3781 33 Content-range: bytes 12-15/3781 60 Range: bytes=0-10,12-15
|
H A D | test1058 | 15 Accept-Ranges: bytes 17 Content-Range: bytes 100-200/201 45 Range: bytes=-101
|
H A D | test12 | 18 Accept-Ranges: bytes 20 Content-Range: bytes 100-200/3527 48 Range: bytes=100-200
|
H A D | test479 | 17 Accept-Ranges: bytes 31 Accept-Ranges: bytes 44 Accept-Ranges: bytes 54 Accept-Ranges: bytes
|
H A D | test427 | 16 Accept-Ranges: bytes 31 Accept-Ranges: bytes 48 Keep Cookie: header within 8190 bytes
|
/curl/docs/cmdline-opts/ |
H A D | range.md | 6 Help: Retrieve only the bytes within RANGE 25 specifies the first 500 bytes 28 specifies the second 500 bytes 31 specifies the last 500 bytes 34 specifies the bytes from offset 9500 and forward
|
/curl/docs/libcurl/opts/ |
H A D | CURLINFO_SIZE_UPLOAD_T.md | 19 CURLINFO_SIZE_UPLOAD_T - get the number of uploaded bytes 32 Pass a pointer to a *curl_off_t* to receive the total amount of bytes that 54 printf("Uploaded %" CURL_FORMAT_CURL_OFF_T " bytes\n", ul);
|
H A D | CURLINFO_SIZE_UPLOAD.md | 19 CURLINFO_SIZE_UPLOAD - get the number of uploaded bytes 32 Pass a pointer to a double to receive the total amount of bytes that were 57 printf("Uploaded %.0f bytes\n", ul);
|
H A D | CURLOPT_LOW_SPEED_LIMIT.md | 19 CURLOPT_LOW_SPEED_LIMIT - low speed limit in bytes per second 32 Pass a long as parameter. It contains the average transfer speed in bytes per 52 /* abort if slower than 30 bytes/sec during 60 seconds */
|
H A D | CURLINFO_EARLYDATA_SENT_T.md | 19 CURLINFO_EARLYDATA_SENT_T - get the number of bytes sent as TLS early data 32 Pass a pointer to an *curl_off_t* to receive the total amount of bytes that 43 bytes had been sent, but were rejected, it reports -127 as the amount "sent". 64 printf("TLS earlydata: %" CURL_FORMAT_CURL_OFF_T " bytes\n", amount);
|
H A D | CURLOPT_TFTP_BLKSIZE.md | 29 RFC 2348 is 8-65464 bytes. The default of 512 bytes is used if this option is 32 returns an option acknowledgment with no block size, the default of 512 bytes
|
H A D | CURLINFO_SIZE_DOWNLOAD_T.md | 20 CURLINFO_SIZE_DOWNLOAD_T - get the number of downloaded bytes 33 Pass a pointer to a *curl_off_t* to receive the total amount of bytes that 58 printf("Downloaded %" CURL_FORMAT_CURL_OFF_T " bytes\n", dl);
|