/curl/src/ |
H A D | tool_cfgable.c | 37 config->use_httpget = FALSE; in config_init() 38 config->create_dirs = FALSE; in config_init() 46 config->ftp_skip_ip = TRUE; in config_init() 57 Curl_safefree(config->hsts); in free_config_fields() 108 config->url_list = NULL; in free_config_fields() 109 config->url_last = NULL; in free_config_fields() 110 config->url_get = NULL; in free_config_fields() 111 config->url_out = NULL; in free_config_fields() 164 config->mimepost = NULL; in free_config_fields() 166 config->mimeroot = NULL; in free_config_fields() [all …]
|
H A D | tool_getparam.c | 1381 config->url_get = config->url_list; in getparameter() 1387 config->url_get = config->url_get->next; in getparameter() 1397 config->url_get = url = new_getout(config); in getparameter() 2321 config->url_out = config->url_list; in getparameter() 2326 config->url_out = config->url_out->next; in getparameter() 2338 config->url_out = url = new_getout(config); in getparameter() 2454 config->url_ul = config->url_list; in getparameter() 2459 config->url_ul = config->url_ul->next; in getparameter() 2469 config->url_ul = url = new_getout(config); in getparameter() 2739 config->next->prev = config; in parse_args() [all …]
|
H A D | tool_operate.c | 185 (void)config; in sockopt_callback() 460 struct OperationConfig *config = per->config; in post_per_transfer() local 1065 per->config = config; in single_transfer() 1506 else if(config->netrc || config->netrc_file) in single_transfer() 1690 if(config->proxy_capath || config->capath) { in single_transfer() 1709 if(!config->cacert && !config->capath) { in single_transfer() 1980 if(config->no_body || config->remote_time) { in single_transfer() 2033 customrequest_helper(config, config->httpreq, config->customrequest); in single_transfer() 2263 hdrcbdata->config = config; in single_transfer() 3012 if(!config->url_list || !config->url_list->url) { in transfer_per_config() [all …]
|
H A D | tool_main.c | 156 config->first = config->last = malloc(sizeof(struct OperationConfig)); in main_init() 157 if(config->first) { in main_init() 167 config->first->global = config; in main_init() 171 free(config->first); in main_init() 176 free(config->first); in main_init() 191 if(config->trace_fopened && config->trace_stream) in free_globalconfig() 193 config->trace_stream = NULL; in free_globalconfig() 207 free_globalconfig(config); in main_free() 210 config_free(config->last); in main_free() 211 config->first = NULL; in main_free() [all …]
|
H A D | tool_msgs.c | 39 static void voutf(struct GlobalConfig *config, 44 static void voutf(struct GlobalConfig *config, in voutf() argument 51 if(!config->silent) { in voutf() 95 void notef(struct GlobalConfig *config, const char *fmt, ...) in notef() argument 99 if(config->tracetype) in notef() 100 voutf(config, NOTE_PREFIX, fmt, ap); in notef() 108 void warnf(struct GlobalConfig *config, const char *fmt, ...) in warnf() argument 112 voutf(config, WARN_PREFIX, fmt, ap); in warnf() 142 void errorf(struct GlobalConfig *config, const char *fmt, ...) in errorf() argument 144 if(!config->silent || config->showerror) { in errorf() [all …]
|
H A D | tool_cb_rea.c | 49 struct OperationConfig *config = per->config; in tool_read_cb() local 57 if(config->timeout_ms) { in tool_read_cb() 61 if(msdelta > config->timeout_ms) in tool_read_cb() 70 long wait = config->timeout_ms - msdelta; in tool_read_cb() 88 config->readbusy = TRUE; in tool_read_cb() 98 warnf(per->config->global, "File size larger in the end than when " in tool_read_cb() 103 config->readbusy = FALSE; in tool_read_cb() 118 struct OperationConfig *config = per->config; in tool_readbusy_cb() local 125 if(config->readbusy) { in tool_readbusy_cb() 147 config->readbusy = FALSE; in tool_readbusy_cb()
|
H A D | tool_paramhlp.h | 29 struct getout *new_getout(struct OperationConfig *config); 47 ParameterError proto2num(struct OperationConfig *config, 55 CURLcode get_args(struct OperationConfig *config, const size_t i); 59 int ftpfilemethod(struct OperationConfig *config, const char *str); 61 int ftpcccmethod(struct OperationConfig *config, const char *str); 63 long delegation(struct OperationConfig *config, const char *str);
|
H A D | tool_cb_dbg.c | 110 if(config->tracetime) { in tool_debug_cb() 118 if(handle && config->traceids && in tool_debug_cb() 132 if(!config->trace_stream) { in tool_debug_cb() 134 if(!strcmp("-", config->trace_dump)) in tool_debug_cb() 135 config->trace_stream = stdout; in tool_debug_cb() 140 config->trace_stream = fopen(config->trace_dump, FOPEN_WRITETEXT); in tool_debug_cb() 141 config->trace_fopened = TRUE; in tool_debug_cb() 145 if(config->trace_stream) in tool_debug_cb() 146 output = config->trace_stream; in tool_debug_cb() 196 if(!config->isatty || in tool_debug_cb() [all …]
|
H A D | tool_cb_wrt.c | 59 DEBUGASSERT(config); in tool_create_output_file() 60 global = config->global; in tool_create_output_file() 63 if(config->file_clobber_mode == CLOBBER_ALWAYS || in tool_create_output_file() 64 (config->file_clobber_mode == CLOBBER_DEFAULT && in tool_create_output_file() 140 struct OperationConfig *config = per->config; in tool_write_cb() local 142 bool is_tty = config->global->isatty; in tool_write_cb() 157 if(config->show_headers) { in tool_write_cb() 210 config->synthetic_error = TRUE; in tool_write_cb() 354 if(config->readbusy) { in tool_write_cb() 355 config->readbusy = FALSE; in tool_write_cb() [all …]
|
H A D | tool_paramhlp.c | 45 struct getout *last = config->url_last; in new_getout() 53 config->url_list = node; /* first node */ in new_getout() 56 config->url_last = node; in new_getout() 58 node->flags = config->default_node_flags; in new_getout() 671 bool last = (config->next ? FALSE : TRUE); in get_args() 673 if(config->jsoned) { in get_args() 686 if(config->userpwd && !config->oauth_bearer) { in get_args() 693 if(config->proxyuserpwd) { in get_args() 700 if(!config->useragent) { in get_args() 701 config->useragent = my_useragent(); in get_args() [all …]
|
H A D | tool_helpers.c | 85 int SetHTTPrequest(struct OperationConfig *config, HttpReq req, HttpReq *store) in SetHTTPrequest() argument 102 warnf(config->global, "You can only select one HTTP request method! " in SetHTTPrequest() 109 void customrequest_helper(struct OperationConfig *config, HttpReq req, in customrequest_helper() argument 125 notef(config->global, "Unnecessary use of -X or --request, %s is already " in customrequest_helper() 129 warnf(config->global, in customrequest_helper()
|
H A D | tool_formparse.c | 202 if(sip->config) { in tool_mime_stdin_read() 204 sip->config = NULL; in tool_mime_stdin_read() 637 warnf(config->global, in get_param_part() 643 warnf(config->global, in get_param_part() 649 warnf(config->global, in get_param_part() 758 sep = get_param_part(config, '\0', in formparse() 812 part->config = config->global; in formparse() 818 warnf(config->global, in formparse() 849 part->config = config->global; in formparse() 855 warnf(config->global, in formparse() [all …]
|
H A D | tool_msgs.h | 29 void warnf(struct GlobalConfig *config, const char *fmt, ...) 31 void notef(struct GlobalConfig *config, const char *fmt, ...) 35 void errorf(struct GlobalConfig *config, const char *fmt, ...)
|
H A D | tool_setopt.h | 82 CURLcode tool_setopt_enum(CURL *curl, struct GlobalConfig *config, 85 CURLcode tool_setopt_SSLVERSION(CURL *curl, struct GlobalConfig *config, 88 CURLcode tool_setopt_flags(CURL *curl, struct GlobalConfig *config, 91 CURLcode tool_setopt_bitmask(CURL *curl, struct GlobalConfig *config, 94 CURLcode tool_setopt_mimepost(CURL *curl, struct GlobalConfig *config, 97 CURLcode tool_setopt_slist(CURL *curl, struct GlobalConfig *config, 101 struct OperationConfig *config, 105 SETOPT_CHECK(tool_setopt(x, FALSE, global, config, #y, y, z), y) 108 SETOPT_CHECK(tool_setopt(x, TRUE, global, config, #y, y, z), y) 125 #define res_setopt(x,y,z) tool_setopt(x, FALSE, global, config, #y, y, z) [all …]
|
H A D | tool_cb_hdr.c | 81 if(!per->config) in tool_header_cb() 101 if(per->config->headerfile && heads->stream) { in tool_header_cb() 107 errorf(per->config->global, "Failed writing headers to %s", in tool_header_cb() 108 per->config->headerfile); in tool_header_cb() 126 else if(per->config->etag_save_file && etag_save->stream && in tool_header_cb() 202 if(per->config->output_dir) { in tool_header_cb() 203 outs->filename = aprintf("%s/%s", per->config->output_dir, in tool_header_cb() 217 if(!tool_create_output_file(outs, per->config)) in tool_header_cb() 226 if(hdrcbdata->config->writeout) { in tool_header_cb() 237 if(hdrcbdata->config->show_headers && in tool_header_cb() [all …]
|
/curl/tests/server/ |
H A D | socksd.c | 137 static struct configurable config; variable 154 config.reqcmd = CONFIG_REQCMD; in resetdefaults() 156 config.port = CONFIG_PORT; in resetdefaults() 158 strcpy(config.user, "user"); in resetdefaults() 326 if(!config.port) in socks4() 330 s4port = config.port; in socks4() 402 config.nmethods_min, config.nmethods_max); in sockit() 573 if(!config.port) { in sockit() 578 s5port = config.port; in sockit() 580 if(!config.connectrep) in sockit() [all …]
|
/curl/.github/workflows/ |
H A D | configure-vs-cmake.yml | 15 - '.github/scripts/cmp-config.pl' 26 - '.github/scripts/cmp-config.pl' 48 run: cat bld-am/config.log 2>/dev/null || true 59 - name: compare generated curl-config files 60 run: ./.github/scripts/cmp-pkg-config.sh bld-am/curl-config bld-cm/curl-config 88 run: cat bld-am/config.log 2>/dev/null || true 99 - name: compare generated curl-config files 100 run: ./.github/scripts/cmp-pkg-config.sh bld-am/curl-config bld-cm/curl-config 126 run: cat bld-am/config.log 2>/dev/null || true 137 - name: compare generated curl-config files [all …]
|
/curl/ |
H A D | .gitignore | 41 config.cache 42 config.guess 43 config.log 44 config.status 45 config.sub 51 curl-config 67 tests/config
|
/curl/tests/data/ |
H A D | test2080 | 5 config 21 config file with overly long option 24 -K %LOGDIR/config%TESTNUMBER file://de\>v/null 26 <file name="%LOGDIR/config%TESTNUMBER"> 34 # the used option in the config file is too long
|
H A D | test459 | 5 --config 35 config file with argument using whitespace missing quotes 37 <file name="%LOGDIR/config"> 41 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --config %LOGDIR/config --silent 59 Warning: %LOGDIR/config:1: warning: 'data' uses unquoted whitespace
|
H A D | test432 | 6 --config 40 <file1 name="%LOGDIR/config%TESTNUMBER"> 49 config = "%LOGDIR/config%TESTNUMBER-c" 51 <file2 name="%LOGDIR/config%TESTNUMBER-c"> 62 Use -K with --next and --config from within 65 -K %LOGDIR/config%TESTNUMBER
|
H A D | test430 | 6 --config 40 <file1 name="%LOGDIR/config%TESTNUMBER-a"> 46 <file2 name="%LOGDIR/config%TESTNUMBER-b"> 52 <file3 name="%LOGDIR/config%TESTNUMBER-c"> 66 -K %LOGDIR/config%TESTNUMBER-a -K %LOGDIR/config%TESTNUMBER-b -K %LOGDIR/config%TESTNUMBER-c
|
/curl/docs/cmdline-opts/ |
H A D | disable.md | 11 - config 18 If used as the **first** parameter on the command line, the *curlrc* config 19 file is not read or used. See the --config for details on the default config
|
H A D | config.md | 4 Long: config 6 Help: Read config from a file 14 - --config file.txt $URL 17 # `--config` 25 optionally be given in the config file without the initial double dashes and 35 If the first non-blank column of a config line is a '#' character, that line 38 Only write one option per physical line in the config file. A single line is 41 Specify the filename to --config as minus "-" to make curl read the file from 44 Note that to be able to specify a URL in the config file, you need to specify 63 config file and uses it if found, even when --config is used. The default [all …]
|
/curl/lib/ |
H A D | Makefile.am | 31 EXTRA_DIST = Makefile.mk config-win32.h config-win32ce.h config-plan9.h \ 32 config-riscos.h config-mac.h curl_config.h.in config-dos.h libcurl.rc \ 33 config-amigaos.h config-win32ce.h config-os400.h setup-os400.h \
|