/curl/lib/vauth/ |
H A D | vauth.c | 57 char *Curl_auth_build_spn(const char *service, const char *host, in Curl_auth_build_spn() argument 63 if(host && realm) in Curl_auth_build_spn() 64 spn = aprintf("%s/%s@%s", service, host, realm); in Curl_auth_build_spn() 65 else if(host) in Curl_auth_build_spn() 66 spn = aprintf("%s/%s", service, host); in Curl_auth_build_spn() 74 TCHAR *Curl_auth_build_spn(const char *service, const char *host, in Curl_auth_build_spn() argument 91 utf8_spn = aprintf("%s/%s", service, host); in Curl_auth_build_spn() 160 strcasecompare(data->state.first_host, conn->host.name) && in Curl_auth_allowed_to_host()
|
H A D | oauth2.c | 61 const char *host, in Curl_auth_create_oauth_bearer_message() argument 70 oauth = aprintf("n,a=%s,\1host=%s\1auth=Bearer %s\1\1", user, host, in Curl_auth_create_oauth_bearer_message() 74 host, port, bearer); in Curl_auth_create_oauth_bearer_message()
|
/curl/tests/server/ |
H A D | resolve.c | 65 const char *host = NULL; in main() local 91 host = argv[arg++]; in main() 94 if(!host) { in main() 133 rc = (getaddrinfo)(host, "80", &hints, &ai); in main() 146 he = gethostbyname(host); in main() 153 printf("Resolving %s '%s' didn't work\n", ipv_inuse, host); in main()
|
/curl/tests/libtest/ |
H A D | lib536.c | 44 struct curl_slist *host = NULL; in test() local 58 host = curl_slist_append(NULL, libtest_arg3); in test() 59 if(!host) in test() 62 test_setopt(curl, CURLOPT_RESOLVE, host); in test() 80 curl_slist_free_all(host); in test()
|
H A D | lib1915.c | 57 const char *host; in hstsread() local 61 host = preload_hosts[s->index].name; in hstsread() 64 if(host && (strlen(host) < e->namelen)) { in hstsread() 65 strcpy(e->name, host); in hstsread() 68 fprintf(stderr, "add '%s'\n", host); in hstsread()
|
/curl/docs/examples/ |
H A D | hsts-preload.c | 52 const char *host; in hstsread() local 56 host = preload_hosts[s->index].name; in hstsread() 59 if(host && (strlen(host) < e->namelen)) { in hstsread() 60 strcpy(e->name, host); in hstsread() 63 fprintf(stderr, "HSTS preload '%s' until '%s'\n", host, expire); in hstsread()
|
H A D | parseurl.c | 39 char *host; in main() local 52 uc = curl_url_get(h, CURLUPART_HOST, &host, 0); in main() 54 printf("Host name: %s\n", host); in main() 55 curl_free(host); in main()
|
H A D | resolve.c | 42 struct curl_slist *host = curl_slist_append(NULL, in main() local 47 curl_easy_setopt(curl, CURLOPT_RESOLVE, host); in main() 55 curl_slist_free_all(host); in main()
|
H A D | connect-to.c | 44 struct curl_slist *host = curl_slist_append(NULL, in main() local 49 curl_easy_setopt(curl, CURLOPT_CONNECT_TO, host); in main() 67 curl_slist_free_all(host); in main()
|
/curl/lib/ |
H A D | idn.c | 40 #define IDN2_LOOKUP(name, host, flags) \ argument 41 idn2_lookup_u8((const uint8_t *)name, (uint8_t **)host, flags) 43 #define IDN2_LOOKUP(name, host, flags) \ argument 44 idn2_lookup_ul((const char *)name, (char **)host, flags) 310 void Curl_free_idnconverted_hostname(struct hostname *host) in Curl_free_idnconverted_hostname() argument 312 Curl_safefree(host->encalloc); in Curl_free_idnconverted_hostname() 320 CURLcode Curl_idnconvert_hostname(struct hostname *host) in Curl_idnconvert_hostname() argument 323 host->dispname = host->name; in Curl_idnconvert_hostname() 327 if(!Curl_is_ASCII_name(host->name)) { in Curl_idnconvert_hostname() 329 CURLcode result = Curl_idn_decode(host->name, &decoded); in Curl_idnconvert_hostname() [all …]
|
H A D | urlapi.c | 76 char *host; member 96 free(u->host); in free_urlhandle() 829 uc = ipv6_parse(u, Curl_dyn_ptr(host), Curl_dyn_len(host)); in parse_authority() 834 uc = hostname_check(u, Curl_dyn_ptr(host), Curl_dyn_len(host)); in parse_authority() 853 struct dynbuf host; in Curl_url_set_authority() local 863 free(u->host); in Curl_url_set_authority() 864 u->host = Curl_dyn_ptr(&host); in Curl_url_set_authority() 1011 struct dynbuf host; in parseurl() local 1345 u->host = Curl_dyn_ptr(&host); in parseurl() 1403 DUP(u, in, host); in curl_url_dup() [all …]
|
/curl/tests/data/ |
H A D | test1087 | 29 Location: http://goto.second.host.now/%TESTNUMBER1002 56 Location: http://goto.second.host.now/%TESTNUMBER1002 78 HTTP, proxy with --anyauth and Location: to new host 81 http://first.host.it.is/we/want/that/page/%TESTNUMBER1000 -x %HOSTIP:%HTTPPORT --user iam:myself --… 92 GET http://first.host.it.is/we/want/that/page/%TESTNUMBER1000 HTTP/1.1 93 Host: first.host.it.is 98 GET http://first.host.it.is/we/want/that/page/%TESTNUMBER1000 HTTP/1.1 99 Host: first.host.it.is 105 GET http://goto.second.host.now/%TESTNUMBER1002 HTTP/1.1 106 Host: goto.second.host.now
|
H A D | test1088 | 30 Location: http://goto.second.host.now/%TESTNUMBER1002 57 Location: http://goto.second.host.now/%TESTNUMBER1002 79 HTTP, proxy with --anyauth and Location: to new host using location-trusted 82 http://first.host.it.is/we/want/that/page/%TESTNUMBER1000 -x %HOSTIP:%HTTPPORT --user iam:myself --… 93 GET http://first.host.it.is/we/want/that/page/%TESTNUMBER1000 HTTP/1.1 94 Host: first.host.it.is 99 GET http://first.host.it.is/we/want/that/page/%TESTNUMBER1000 HTTP/1.1 100 Host: first.host.it.is 106 GET http://goto.second.host.now/%TESTNUMBER1002 HTTP/1.1 107 Host: goto.second.host.now
|
H A D | test330 | 19 Location: http://goto.second.host.now/%TESTNUMBER0002 42 Location: http://goto.second.host.now/%TESTNUMBER0002 64 HTTP with custom Cookie: and redirect to new host 67 http://first.host.it.is/we/want/that/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT -H "Cookie: test=yes" --… 78 GET http://first.host.it.is/we/want/that/page/%TESTNUMBER HTTP/1.1 79 Host: first.host.it.is 85 GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/1.1 86 Host: goto.second.host.now
|
H A D | test233 | 20 Location: http://goto.second.host.now/%TESTNUMBER0002 43 Location: http://goto.second.host.now/%TESTNUMBER0002 65 HTTP, proxy, site+proxy auth and Location: to new host 68 http://first.host.it.is/we/want/that/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT --user iam:myself --prox… 79 GET http://first.host.it.is/we/want/that/page/%TESTNUMBER HTTP/1.1 80 Host: first.host.it.is 87 GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/1.1 88 Host: goto.second.host.now
|
H A D | test317 | 20 Location: http://goto.second.host.now/%TESTNUMBER0002 43 Location: http://goto.second.host.now/%TESTNUMBER0002 65 HTTP with custom Authorization: and redirect to new host 68 http://first.host.it.is/we/want/that/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT -H "Authorization: s3cr3… 79 GET http://first.host.it.is/we/want/that/page/%TESTNUMBER HTTP/1.1 80 Host: first.host.it.is 87 GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/1.1 88 Host: goto.second.host.now
|
H A D | test318 | 20 Location: http://goto.second.host.now/%TESTNUMBER0002 43 Location: http://goto.second.host.now/%TESTNUMBER0002 65 HTTP with custom Authorization: and redirect to new host 68 http://first.host.it.is/we/want/that/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT -H "Authorization: s3cr3… 79 GET http://first.host.it.is/we/want/that/page/%TESTNUMBER HTTP/1.1 80 Host: first.host.it.is 87 GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/1.1 88 Host: goto.second.host.now
|
H A D | test234 | 22 Location: http://goto.second.host.now/%TESTNUMBER0002 45 Location: http://goto.second.host.now/%TESTNUMBER0002 67 HTTP, proxy, site+proxy auth and Location: to new host using location-trusted 70 http://first.host.it.is/we/want/that/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT --user iam:myself --prox… 81 GET http://first.host.it.is/we/want/that/page/%TESTNUMBER HTTP/1.1 82 Host: first.host.it.is 89 GET http://goto.second.host.now/%TESTNUMBER0002 HTTP/1.1 90 Host: goto.second.host.now
|
H A D | test329 | 17 Set-Cookie: testn1=yes; path=/we/want/; domain=.host.foo.com; Max-Age=-1; 18 Set-Cookie: test=yes; path=/we/want/; domain=.host.foo.com; Max-Age=0; 35 .host.foo.com TRUE /we/want/ FALSE 22147483647 test no 38 .host.foo.com TRUE /we/want/ FALSE 22147483647 tester yes 53 …R -b %LOGDIR/jar%TESTNUMBER.txt -b %LOGDIR/jar%TESTNUMBER-2.txt -H "Host: host.foo.com" http://%HO… 64 Host: host.foo.com 70 Host: host.foo.com
|
H A D | test507 | 7 non-existing host 21 multi interface get with non-existing host name 27 http://non-existing-host.haxx.se/
|
/curl/docs/cmdline-opts/ |
H A D | resolve.md | 5 Arg: <[+]host:port:addr[,addr]...> 6 Help: Resolve host+port to address 19 Provide a custom address for a specific host and port pair. Using this, you 23 the number used for the specific protocol the host is used for. It means 24 you need several entries if you want to provide address for the same host but 27 By specifying `*` as host you can tell curl to resolve any host and specific 29 with a specific host and port is used first. 34 By prefixing the host with a '+' you can make the entry time out after curl's 37 curl tries to resolve the host as it normally would once the timeout has
|
/curl/tests/unit/ |
H A D | unit1397.c | 40 const char *host; member 101 for(i = 0; tests[i].host; i++) { 104 tests[i].host, 105 strlen(tests[i].host))) { 110 tests[i].host,
|
H A D | unit1663.c | 60 char *host = NULL; in test_parse() local 62 input, strlen(input), &dev, &iface, &host); in test_parse() 67 fail_unless(!!exp_host == !!host, "host expectation failed"); in test_parse() 74 fail_unless(!exp_host || strcmp(host, exp_host) == 0, in test_parse() 80 free(host); in test_parse()
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_CONNECT_TO.md | 18 CURLOPT_CONNECT_TO - connect to another host and port instead 38 HOST:PORT:CONNECT-TO-HOST:CONNECT-TO-PORT where HOST is the host of the 42 The first string that matches the request's host and port is used. 48 or port always match (the request's host or port is ignored). When 50 disabled for the host or port, and the request's host or port are used to 56 The "connect to" host and port are only used to establish the network 57 connection. They do NOT affect the host and port that are used for TLS/SSL 64 The "connect to" host and port are ignored if they are equal to the host and 65 the port in the request URL, because connecting to the host and the port in 69 port, and the "connect to" host or port differs from the request's host and [all …]
|
H A D | CURLOPT_SSH_KEYFUNCTION.md | 17 CURLOPT_SSH_KEYFUNCTION - callback for known host matching logic 36 CURLKHMATCH_MISMATCH, /* host found, key mismatch! */ 37 CURLKHMATCH_MISSING, /* no matching host/key found */ 75 The new host+key is accepted and libcurl replaces the old host+key into the 77 host+key combo to the known_host pool kept in memory if it was not already 84 The host+key is accepted and libcurl appends it to the known_hosts file before 85 continuing with the connection. This also adds the host+key combo to the 92 The host+key is accepted libcurl continues with the connection. This also adds 98 The host+key is rejected. libcurl denies the connection to continue and it is 103 The host+key is rejected, but the SSH connection is asked to be kept alive. [all …]
|