/curl/tests/unit/ |
H A D | unit1398.c | 40 char output[130]; variable 45 rc = curl_msnprintf(output, 4, "%.*s", width, buf); 50 rc = curl_msnprintf(output, 4, "%.*s", width, str); 61 rc = curl_msnprintf(output, 8, "%.8s", str); 71 rc = curl_msnprintf(output, 8, "%-8s", str); 76 rc = curl_msnprintf(output, 8, "%8s", str); 81 rc = curl_msnprintf(output, 4, "%d", 10240); 100 rc = curl_msnprintf(output, 130, 132 rc = curl_msnprintf(output, 130, 164 rc = curl_msnprintf(output, 130, [all …]
|
H A D | unit1302.c | 54 char *output; variable 64 Curl_safefree(output); 70 Curl_safefree(output); 76 Curl_safefree(output); 82 Curl_safefree(output); 88 Curl_safefree(output); 94 Curl_safefree(output); 100 Curl_safefree(output); 107 Curl_safefree(output); 113 Curl_safefree(output); [all …]
|
H A D | unit1652.c | 38 static char output[4096]; variable 56 memset(output, '\0', sizeof(output)); in debugf_cb() 57 memcpy(output, buf, size); in debugf_cb() 107 fail_unless(verify(output, input) == 0, "Simple string test"); 111 fail_unless(verify(output, "Simple Test 42 testing 43\n") == 0, 116 fail_unless(strlen(output) == 1, "Empty string"); 126 fail_unless(output[sizeof(output) - 1] == '\0', 132 fail_unless(strlen(output) == 2051, "Truncation of infof input 1"); 133 fail_unless(output[sizeof(output) - 1] == '\0', "Truncation of infof input 1"); 140 fail_unless(output[sizeof(output) - 1] == '\0', "Truncation of infof input 2"); [all …]
|
H A D | unit1395.c | 43 const char *output; member 86 if(out && pairs[i].output && strcmp(out, pairs[i].output)) { 88 i, pairs[i].input, out, pairs[i].output); 92 else if((!out && pairs[i].output) || 93 (out && !pairs[i].output)) { 96 pairs[i].output ? pairs[i].output : "(null)");
|
H A D | unit1600.c | 54 unsigned char output[21]; variable 55 unsigned char *testp = output; 56 Curl_ntlm_core_mk_nt_hash("1", output); 62 Curl_ntlm_core_mk_nt_hash("hello-you-fool", output); 69 …AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", output);
|
H A D | unit1611.c | 43 unsigned char output[MD4_DIGEST_LENGTH]; variable 44 unsigned char *testp = output; 46 Curl_md4it(output, (const unsigned char *) string1, strlen(string1)); 52 Curl_md4it(output, (const unsigned char *) string2, strlen(string2));
|
H A D | unit1601.c | 45 unsigned char output[MD5_DIGEST_LEN]; variable 46 unsigned char *testp = output; 48 Curl_md5it(output, (const unsigned char *) string1, strlen(string1)); 53 Curl_md5it(output, (const unsigned char *) string2, strlen(string2));
|
H A D | unit1604.c | 214 char *output = NULL; variable 220 res = sanitize_file_name(&output, data[i].input, data[i].flags); 223 ((!output && !data[i].expected_output) || 224 (output && data[i].expected_output && 225 !strcmp(output, data[i].expected_output)))) { /* OK */ 226 free(output); 249 (output ? output : "(null)"), 254 free(output);
|
H A D | unit1610.c | 47 unsigned char output[CURL_SHA256_DIGEST_LENGTH]; variable 48 unsigned char *testp = output; 50 Curl_sha256it(output, (const unsigned char *) string1, strlen(string1)); 57 Curl_sha256it(output, (const unsigned char *) string2, strlen(string2));
|
H A D | unit1612.c | 47 unsigned char output[HMAC_MD5_LENGTH]; variable 48 unsigned char *testp = output; 53 output); 62 output);
|
H A D | unit1309.c | 40 static void splayprint(struct Curl_tree *t, int d, char output) in splayprint() argument 48 splayprint(t->larger, d + 1, output); in splayprint() 50 if(output) in splayprint() 53 if(output) { in splayprint() 61 if(output) { in splayprint() 68 splayprint(t->smaller, d + 1, output); in splayprint()
|
/curl/lib/ |
H A D | base64.c | 192 char *output; in base64_encode() local 209 if(!output) in base64_encode() 213 *output++ = table64[ in[0] >> 2 ]; in base64_encode() 216 *output++ = table64[ in[2] & 0x3F ]; in base64_encode() 222 *output++ = table64[ in[0] >> 2 ]; in base64_encode() 224 *output++ = table64[ ((in[0] & 0x03) << 4) ]; in base64_encode() 226 *output++ = *padstr; in base64_encode() 227 *output++ = *padstr; in base64_encode() 235 *output++ = *padstr; in base64_encode() 240 *output = '\0'; in base64_encode() [all …]
|
H A D | hmac.c | 113 int Curl_HMAC_final(struct HMAC_context *ctxt, unsigned char *output) in Curl_HMAC_final() argument 120 if(!output) in Curl_HMAC_final() 121 output = (unsigned char *) ctxt->hashctxt2 + ctxt->hash->ctxtsize; in Curl_HMAC_final() 123 hashparams->hfinal(output, ctxt->hashctxt1); in Curl_HMAC_final() 124 hashparams->hupdate(ctxt->hashctxt2, output, hashparams->resultlen); in Curl_HMAC_final() 125 hashparams->hfinal(output, ctxt->hashctxt2); in Curl_HMAC_final() 150 unsigned char *output) in Curl_hmacit() argument 162 Curl_HMAC_final(ctxt, output); in Curl_hmacit()
|
/curl/docs/cmdline-opts/ |
H A D | output-dir.md | 4 Long: output-dir 8 Category: output 14 - --output-dir "tmp" -O $URL 17 # `--output-dir` 20 --output are used. 22 The given output directory is used for all URLs and output options on the
|
H A D | remove-on-error.md | 5 Help: Remove output file on errors 6 Category: output 12 - --remove-on-error -o output $URL 17 Remove output file if an error occurs. If curl returns an error when told to 18 save output in a local file. This prevents curl from leaving a partial file in 21 If the output is not a regular file, this option has no effect.
|
H A D | styled-output.md | 4 Long: styled-output 5 Help: Enable styled output for HTTP headers 14 - --styled-output -I $URL 17 # `--styled-output` 20 terminal. Use --no-styled-output to switch them off. 22 Styled output requires a terminal that supports bold fonts. This feature is
|
H A D | create-dirs.md | 6 Category: output 11 - output-dir 13 - --create-dirs --output local/dir/file $URL 18 When used in conjunction with the --output option, curl creates the necessary 20 mentioned with the --output option combined with the path possibly set with 21 --output-dir. If the combined output filename uses no directory, or if the
|
H A D | trace-ascii.md | 6 Help: Like --trace, but without hex output 22 descriptive information, in the given output file. Use `-` as filename to have 23 the output sent to stdout. Use `%` as filename to send the output to stderr. 26 ASCII part of the dump. It makes smaller output that might be easier to read 29 Note that verbose output of curl activities and network traffic might contain
|
H A D | output.md | 4 Long: output 8 Category: important output 22 # `--output` 24 Write output to the given file instead of stdout. If you are using globbing to 48 dynamically. Specifying the output as '-' (a single dash) passes the output to 51 To suppress response bodies, you can redirect output to /dev/null: 59 Specify the filename as single minus to force the output to stdout, to 60 override curl's internal binary output in terminal prevention:
|
H A D | no-buffer.md | 6 Help: Disable buffering of the output stream 7 Category: output 18 Disables the buffering of the output stream. In normal work situations, curl 19 uses a standard buffered output stream that has the effect that it outputs the
|
/curl/docs/examples/ |
H A D | ftp-wildcard.c | 32 FILE *output; member 122 data->output = fopen(finfo->filename, "wb"); in file_is_coming() 123 if(!data->output) { in file_is_coming() 133 if(data->output) { in file_is_downloaded() 135 fclose(data->output); in file_is_downloaded() 136 data->output = 0x0; in file_is_downloaded() 146 if(data->output) in write_it() 147 written = fwrite(buff, size, nmemb, data->output); in write_it()
|
/curl/src/ |
H A D | tool_cb_dbg.c | 96 FILE *output = tool_stderr; in tool_debug_cb() local 146 output = config->trace_stream; in tool_debug_cb() 148 if(!output) { in tool_debug_cb() 167 (void)fwrite(data + st, i - st + 1, 1, output); in tool_debug_cb() 173 log_line_start(output, timebuf, idsbuf, type); in tool_debug_cb() 174 (void)fwrite(data + st, i - st + 1, 1, output); in tool_debug_cb() 182 log_line_start(output, timebuf, idsbuf, type); in tool_debug_cb() 183 (void)fwrite(data, size, 1, output); in tool_debug_cb() 197 ((output != tool_stderr) && (output != stdout))) { in tool_debug_cb() 199 log_line_start(output, timebuf, idsbuf, type); in tool_debug_cb() [all …]
|
/curl/tests/data/ |
H A D | test991 | 36 use -w %output{} append 38 <file name="%LOGDIR/output" nonewline="yes"> 42 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w '%output{>>%LOGDIR/output}%{http_code}' 56 <file name="%LOGDIR/output" nonewline="yes">
|
/curl/tests/http/clients/ |
H A D | h2-upgrade-extreme.c | 60 FILE *output = stderr; in debug_cb() local 90 log_line_start(output, idsbuf, type); in debug_cb() 92 (void)fwrite(data + st, i - st + 1, 1, output); in debug_cb() 98 log_line_start(output, idsbuf, type); in debug_cb() 99 (void)fwrite(data + st, i - st + 1, 1, output); in debug_cb() 107 log_line_start(output, idsbuf, type); in debug_cb() 108 (void)fwrite(data, size, 1, output); in debug_cb() 118 log_line_start(output, idsbuf, type); in debug_cb() 119 fprintf(output, "[%ld bytes data]\n", (long)size); in debug_cb()
|
/curl/tests/libtest/ |
H A D | lib517.c | 30 time_t output; member 165 if(out != dates[i].output) { in test() 167 dates[i].input, (long)out, (long)dates[i].output); in test()
|