Lines Matching defs:host
243 /* data is in the host encoding so
774 * host/proxy and the correct authentication
849 /* To prevent the user+password to get sent to other than the original host
1798 if(data->state.aptr.host &&
1944 if(data->state.aptr.host &&
2148 data->state.first_host = strdup(conn->host.name);
2155 Curl_safefree(aptr->host);
2159 strcasecompare(data->state.first_host, conn->host.name))) {
2161 /* If we have a given custom Host: header, we extract the host name in
2164 redirected request is being out on thin ice. Except if the host name
2173 /* If the host begins with '[', we start searching for the port after
2188 *colon = 0; /* The host must not include an embedded port number */
2196 aptr->host = aprintf("Host:%s\r\n", &ptr[5]);
2197 if(!aptr->host)
2202 /* When building Host: headers, we must put the host name within
2203 [brackets] if the host name is a plain IPv6-address. RFC2732-style. */
2204 const char *host = conn->host.name;
2211 the port number in the host string */
2212 aptr->host = aprintf("Host: %s%s%s\r\n", conn->bits.ipv6_ip?"[":"",
2213 host, conn->bits.ipv6_ip?"]":"");
2215 aptr->host = aprintf("Host: %s%s%s:%d\r\n", conn->bits.ipv6_ip?"[":"",
2216 host, conn->bits.ipv6_ip?"]":"",
2219 if(!aptr->host)
2247 host is a IDN-name, we must make sure that the request we produce only
2248 uses the encoded host name! */
2257 if(conn->host.dispname != conn->host.name) {
2258 uc = curl_url_set(h, CURLUPART_HOST, conn->host.name, 0);
2782 const char *host = data->state.aptr.cookiehost ?
2783 data->state.aptr.cookiehost : conn->host.name;
2786 strcasecompare("localhost", host) ||
2787 !strcmp(host, "127.0.0.1") ||
2788 !strcmp(host, "::1") ? TRUE : FALSE;
2790 co = Curl_cookie_getlist(data, data->cookies, host, data->state.up.path,
3231 "%s" /* host */
3245 (data->state.aptr.host?data->state.aptr.host:""),
3620 host name. */
3621 const char *host = data->state.aptr.cookiehost?
3622 data->state.aptr.cookiehost:conn->host.name;
3625 strcasecompare("localhost", host) ||
3626 !strcmp(host, "127.0.0.1") ||
3627 !strcmp(host, "::1") ? TRUE : FALSE;
3632 headp + strlen("Set-Cookie:"), host,
3720 Curl_hsts_parse(data->hsts, conn->host.name,
3747 id, conn->host.name,
4642 char *user, *pass, *host, *port;
4647 user = pass = host = port = NULL;
4650 uc = curl_url_get(url, CURLUPART_HOST, &host, 0);
4653 if(!host) {
4684 result = Curl_dyn_add(&buf, host);
4700 free(host);