Lines Matching refs:hostname

516   char *hostname = Curl_dyn_ptr(host);  in Curl_parse_port()  local
520 if(hostname[0] == '[') { in Curl_parse_port()
521 portptr = strchr(hostname, ']'); in Curl_parse_port()
534 portptr = strchr(hostname, ':'); in Curl_parse_port()
539 size_t keep = portptr - hostname; in Curl_parse_port()
574 static CURLUcode ipv6_parse(struct Curl_URL *u, char *hostname, in ipv6_parse() argument
578 DEBUGASSERT(*hostname == '['); in ipv6_parse()
581 hostname++; in ipv6_parse()
585 len = strspn(hostname, "0123456789abcdefABCDEF:."); in ipv6_parse()
589 if(hostname[len] == '%') { in ipv6_parse()
593 char *h = &hostname[len + 1]; in ipv6_parse()
605 hostname[len] = ']'; /* insert end bracket */ in ipv6_parse()
606 hostname[len + 1] = 0; /* terminate the hostname */ in ipv6_parse()
616 hostname[hlen] = 0; /* end the address there */ in ipv6_parse()
617 if(1 != Curl_inet_pton(AF_INET6, hostname, dest)) in ipv6_parse()
619 if(Curl_inet_ntop(AF_INET6, dest, hostname, hlen)) { in ipv6_parse()
620 hlen = strlen(hostname); /* might be shorter now */ in ipv6_parse()
621 hostname[hlen + 1] = 0; in ipv6_parse()
623 hostname[hlen] = ']'; /* restore ending bracket */ in ipv6_parse()
628 static CURLUcode hostname_check(struct Curl_URL *u, char *hostname, in hostname_check() argument
632 DEBUGASSERT(hostname); in hostname_check()
636 else if(hostname[0] == '[') in hostname_check()
637 return ipv6_parse(u, hostname, hlen); in hostname_check()
640 len = strcspn(hostname, " \r\n\t/:#?!@{}[]\\$\'\"^`*<>=;,+&()%"); in hostname_check()
765 const char *hostname = Curl_dyn_ptr(host); in urldecode_host() local
766 per = strchr(hostname, '%'); in urldecode_host()
774 CURLcode result = Curl_urldecode(hostname, 0, &decoded, &dlen, in urldecode_host()
1197 const char *hostname = Curl_dyn_ptr(&host); in parseurl() local
1199 if(checkprefix("ftp.", hostname)) in parseurl()
1201 else if(checkprefix("dict.", hostname)) in parseurl()
1203 else if(checkprefix("ldap.", hostname)) in parseurl()
1205 else if(checkprefix("imap.", hostname)) in parseurl()
1207 else if(checkprefix("smtp.", hostname)) in parseurl()
1209 else if(checkprefix("pop3.", hostname)) in parseurl()