Home | History | Annotate | Download | only in src

Lines Matching refs:config

244   {"K",  "config",                   TRUE},
386 struct OperationConfig *config)
485 GetStr(&config->dns_ipv4_addr, nextarg);
489 GetStr(&config->dns_ipv6_addr, nextarg);
492 GetStr(&config->random_file, nextarg);
495 GetStr(&config->egd_file, nextarg);
498 GetStr(&config->oauth_bearer, nextarg);
501 err = str2udouble(&config->connecttimeout, nextarg);
506 GetStr(&config->cipher_list, nextarg);
510 GetStr(&config->dns_interface, nextarg);
513 config->disable_epsv = toggle;
516 config->disable_epsv = (!toggle)?TRUE:FALSE;
520 config->writeenv = toggle;
525 GetStr(&config->dns_servers, nextarg);
534 config->nonpn = (!toggle)?TRUE:FALSE;
544 config->noalpn = (!toggle)?TRUE:FALSE;
578 config->recvpersecond = value;
579 config->sendpersecond = value;
586 config->encoding = toggle;
590 config->tr_encoding = toggle;
595 config->authtype |= CURLAUTH_DIGEST;
597 config->authtype &= ~CURLAUTH_DIGEST;
603 config->authtype |= CURLAUTH_NEGOTIATE;
608 config->authtype &= ~CURLAUTH_NEGOTIATE;
614 config->authtype |= CURLAUTH_NTLM;
619 config->authtype &= ~CURLAUTH_NTLM;
625 config->authtype |= CURLAUTH_NTLM_WB;
630 config->authtype &= ~CURLAUTH_NTLM_WB;
635 config->authtype |= CURLAUTH_BASIC;
637 config->authtype &= ~CURLAUTH_BASIC;
642 config->authtype = CURLAUTH_ANY;
652 config->ftp_create_dirs = toggle;
656 config->create_dirs = toggle;
662 err = str2num(&config->maxredirs, nextarg);
665 if(config->maxredirs < -1)
671 config->proxyntlm = toggle;
678 config->crlf = toggle;
698 GetStr(&config->iface, nextarg);
703 GetStr(&config->krblevel, nextarg);
708 err = str2offset(&config->max_filesize, nextarg);
713 config->disable_eprt = toggle;
716 config->disable_eprt = (!toggle)?TRUE:FALSE;
719 config->xattr = toggle;
724 if(config->url_get || ((config->url_get = config->url_list) != NULL)) {
727 while(config->url_get && (config->url_get->flags & GETOUT_URL))
728 config->url_get = config->url_get->next;
733 if(config->url_get)
735 url = config->url_get;
738 url = new_getout(config);
755 config->ftp_ssl = toggle;
758 Curl_safefree(config->ftpport);
762 GetStr(&config->socksproxy, nextarg);
763 config->socksver = CURLPROXY_SOCKS5;
766 GetStr(&config->socksproxy, nextarg);
767 config->socksver = CURLPROXY_SOCKS4;
770 GetStr(&config->socksproxy, nextarg);
771 config->socksver = CURLPROXY_SOCKS4A;
775 GetStr(&config->socksproxy, nextarg);
776 config->socksver = CURLPROXY_SOCKS5_HOSTNAME;
779 config->tcp_nodelay = toggle;
782 config->proxydigest = toggle;
785 config->proxybasic = toggle;
788 err = str2unum(&config->req_retry, nextarg);
793 err = str2unum(&config->retry_delay, nextarg);
798 err = str2unum(&config->retry_maxtime, nextarg);
805 config->proxynegotiate = toggle;
811 GetStr(&config->ftp_account, nextarg);
814 config->proxyanyauth = toggle;
820 config->ignorecl = toggle;
823 config->ftp_skip_ip = toggle;
826 config->ftp_filemethod = ftpfilemethod(config, nextarg);
830 &config->localport,
831 &config->localportrange);
835 config->localportrange = 1; /* default number of ports to try */
837 config->localportrange -= config->localport;
838 if(config->localportrange < 1) {
845 GetStr(&config->ftp_alternative_to_user, nextarg);
850 config->ftp_ssl_reqd = toggle;
853 config->disable_sessionid = (!toggle)?TRUE:FALSE;
858 config->ftp_ssl_control = toggle;
861 config->ftp_ssl_ccc = toggle;
862 if(!config->ftp_ssl_ccc_mode)
863 config->ftp_ssl_ccc_mode = CURLFTPSSL_CCC_PASSIVE;
866 config->ftp_ssl_ccc = TRUE;
867 config->ftp_ssl_ccc_mode = ftpcccmethod(config, nextarg);
879 config->raw = toggle;
882 config->post301 = toggle;
885 config->nokeepalive = (!toggle)?TRUE:FALSE;
888 err = str2unum(&config->alivetime, nextarg);
893 config->post302 = toggle;
896 config->post303 = toggle;
900 GetStr(&config->noproxy, nextarg);
903 config->socks5_gssapi_nec = toggle;
907 GetStr(&config->proxy, nextarg);
908 config->proxyver = CURLPROXY_HTTP_1_0;
911 err = str2unum(&config->tftp_blksize, nextarg);
916 GetStr(&config->mail_from, nextarg);
920 err = add2list(&config->mail_rcpt, nextarg);
925 config->ftp_pret = toggle;
928 config->proto_present = TRUE;
929 if(proto2num(config, &config->proto, nextarg))
933 config->proto_redir_present = TRUE;
934 if(proto2num(config, &config->proto_redir, nextarg))
938 err = add2list(&config->resolve, nextarg);
943 config->gssapi_delegation = delegation(config, nextarg);
946 GetStr(&config->mail_auth, nextarg);
965 config->use_metalink = toggle;
973 config->sasl_ir = toggle;
977 config->test_event_based = toggle;
983 GetStr(&config->unix_socket_path, nextarg);
986 config->path_as_is = toggle;
989 GetStr(&config->proxy_service_name, nextarg);
992 GetStr(&config->service_name, nextarg);
995 GetStr(&config->proto_default, nextarg);
996 err = check_protocol(config->proto_default);
1001 err = str2udouble(&config->expect100timeout, nextarg);
1006 config->tftp_no_options = toggle;
1009 err = add2list(&config->connect_to, nextarg);
1027 config->httpversion = CURL_HTTP_VERSION_1_0;
1031 config->httpversion = CURL_HTTP_VERSION_1_1;
1035 config->httpversion = CURL_HTTP_VERSION_2_0;
1039 config->httpversion = CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE;
1047 config->ssl_version = CURL_SSLVERSION_TLSv1;
1051 config->ssl_version = CURL_SSLVERSION_TLSv1_0;
1055 config->ssl_version = CURL_SSLVERSION_TLSv1_1;
1059 config->ssl_version = CURL_SSLVERSION_TLSv1_2;
1065 config->ssl_version = CURL_SSLVERSION_SSLv2;
1069 config->ssl_version = CURL_SSLVERSION_SSLv3;
1073 config->ip_version = 4;
1077 config->ip_version = 6;
1081 config->ftp_append = toggle;
1085 GetStr(&config->useragent, nextarg);
1093 GetStr(&config->cookie, nextarg);
1097 GetStr(&config->cookiefile, nextarg);
1101 config->use_ascii = toggle;
1105 GetStr(&config->cookiejar, nextarg);
1110 err = str2offset(&config->resume_from, nextarg);
1113 config->resume_from_current = FALSE;
1116 config->resume_from_current = TRUE;
1117 config->resume_from = 0;
1119 config->use_resume=TRUE;
1187 char *enc = curl_easy_escape(config->easy, postdata, (int)size);
1268 if(config->postfields) {
1271 char *oldpost = config->postfields;
1272 curl_off_t oldlen = config->postfieldsize;
1274 config->postfields = malloc((size_t)newlen);
1275 if(!config->postfields) {
1280 memcpy(config->postfields, oldpost, (size_t)oldlen);
1282 config->postfields[oldlen] = '\x26';
1283 memcpy(&config->postfields[oldlen+1], postdata, size);
1284 config->postfields[oldlen+1+size] = '\0';
1287 config->postfieldsize += size+1;
1290 config->postfields = postdata;
1291 config->postfieldsize = curlx_uztoso(size);
1298 if(SetHTTPrequest(HTTPREQ_SIMPLEPOST, &config->httpreq)) {
1306 GetStr(&config->headerfile, nextarg);
1314 config->autoreferer = TRUE;
1318 config->autoreferer = FALSE;
1319 GetStr(&config->referer, nextarg);
1326 GetStr(&config->cacert, nextarg);
1329 GetStr(&config->cert_type, nextarg);
1332 GetStr(&config->key, nextarg);
1335 GetStr(&config->key_type, nextarg);
1338 GetStr(&config->key_passwd, nextarg);
1342 GetStr(&config->engine, nextarg);
1343 if(config->engine && curlx_raw_equal(config->engine, "list"))
1348 GetStr(&config->capath, nextarg);
1351 GetStr(&config->pubkey, nextarg);
1354 GetStr(&config->hostpubmd5, nextarg);
1355 if(!config->hostpubmd5 || strlen(config->hostpubmd5) != 32)
1360 GetStr(&config->crlfile, nextarg);
1364 GetStr(&config->tls_username, nextarg);
1370 GetStr(&config->tls_password, nextarg);
1376 GetStr(&config->tls_authtype, nextarg);
1377 if(!strequal(config->tls_authtype, "SRP"))
1385 config->ssl_allow_beast = toggle;
1389 GetStr(&config->login_options, nextarg);
1394 GetStr(&config->pinnedpubkey, nextarg);
1398 config->verifystatus = TRUE;
1402 config->falsestart = TRUE;
1407 config->ssl_no_revoke = TRUE;
1411 config->tcp_fastopen = TRUE;
1418 Curl_safefree(config->cert);
1419 config->cert = certname;
1421 Curl_safefree(config->key_passwd);
1422 config->key_passwd = passphrase;
1430 config->failonerror = toggle;
1435 if(formparse(config,
1437 &config->httppost,
1438 &config->last_post,
1441 if(SetHTTPrequest(config, HTTPREQ_FORMPOST, &config->httpreq))
1446 config->globoff = toggle;
1450 config->use_httpget = TRUE;
1462 err = add2list(&config->proxyheaders, nextarg);
1464 err = add2list(&config->headers, nextarg);
1469 config->include_headers = toggle; /* include the headers as well in the
1473 config->cookiesession = toggle;
1479 config->no_body = toggle;
1480 if(SetHTTPrequest(config,
1481 (config->no_body)?HTTPREQ_HEAD:HTTPREQ_GET,
1482 &config->httpreq))
1486 if(config->include_headers) {
1491 config->content_disposition = toggle;
1494 config->insecure_ok = toggle;
1496 case 'K': /* parse config file */
1498 warnf(global, "error trying read config from the '%s' file\n",
1502 config
1505 config->followlocation = toggle; /* Follow Location: HTTP headers */
1510 config->unrestricted_auth = toggle;
1516 err = str2udouble(&config->timeout, nextarg);
1535 config->netrc_opt = toggle;
1538 GetStr(&config->netrc_file, nextarg);
1543 config->netrc = toggle;
1551 config->nobuffer = (!toggle)?TRUE:FALSE;
1553 config->nobuffer = toggle;
1557 config->default_node_flags = toggle?GETOUT_USEREMOTE:0;
1565 if(config->url_out || ((config->url_out = config->url_list) != NULL)) {
1568 while(config->url_out && (config->url_out->flags & GETOUT_OUTFILE))
1569 config->url_out = config->url_out->next;
1574 if(config->url_out)
1576 url = config->url_out;
1579 url = new_getout(config);
1606 GetStr(&config->ftpport, nextarg);
1610 config->proxytunnel = toggle;
1622 err = add2list(&config->postquote, nextarg);
1627 err = add2list(&config->prequote, nextarg);
1630 err = add2list(&config->quote, nextarg);
1649 Curl_safefree(config->range);
1650 config->range = strdup(buffer);
1651 if(!config->range)
1669 GetStr(&config->range, nextarg);
1674 config->remote_time = toggle;
1694 err = add2list(&config->telnet_options, nextarg);
1702 if(config->url_out || ((config->url_out = config->url_list) != NULL)) {
1705 while(config->url_out && (config->url_out->flags & GETOUT_UPLOAD))
1706 config->url_out = config->url_out->next;
1711 if(config->url_out)
1713 url = config->url_out;
1716 url = new_getout(config);
1733 GetStr(&config->userpwd, nextarg);
1738 GetStr(&config->proxyuserpwd, nextarg);
1778 err = file2string(&config->writeout, file);
1783 if(!config->writeout)
1787 GetStr(&config->writeout, nextarg);
1791 GetStr(&config->proxy, nextarg);
1792 config->proxyver = CURLPROXY_HTTP;
1796 GetStr(&config->customrequest, nextarg);
1800 err = str2unum(&config->low_speed_time, nextarg);
1803 if(!config->low_speed_limit)
1804 config->low_speed_limit = 1;
1808 err = str2unum(&config->low_speed_limit, nextarg);
1811 if(!config->low_speed_time)
1812 config->low_speed_time = 30;
1821 config->timecond = CURL_TIMECOND_IFMODSINCE;
1825 config->timecond = CURL_TIMECOND_IFUNMODSINCE;
1830 config->timecond = CURL_TIMECOND_LASTMOD;
1835 config->condtime=curl_getdate(nextarg, &now);
1836 if(-1 == (int)config->condtime) {
1841 config->timecond = CURL_TIMECOND_NONE;
1849 config->condtime = statbuf.st_mtime;
1863 ParameterError parse_args(struct GlobalConfig *config, int argc,
1870 struct OperationConfig *operation = config->first;
1887 result = getparameter(flag, nextarg, &passarg, config, operation);
1894 /* Allocate the next config */
1897 /* Initialise the newly created config */
1901 operation->next->easy = config->easy;
1903 /* Set the global config pointer */
1904 operation->next->global = config;
1907 config->last = operation->next;
1909 /* Move onto the new config */
1925 result = getparameter((char *)"--url", argv[i], &used, config,
1937 helpf(config->errors, "option %s: %s\n", orig_opt, reason);
1939 helpf(config->errors, "%s\n", reason);