Lines Matching defs:host
104 static void wget_info(char *url, char **host, char **port, char **path)
106 *host = strafter(url, "://");
107 *path = strchr(*host, '/');
109 if ((*path = strchr(*host, '/'))) {
116 if ( *host[0] == '[' && strchr(*host, ']') ) { // IPv6
117 *port = strafter(*host, "]:");
118 *host = *host + 1;
119 strchr(*host, ']')[0] = '\0';
121 if ((*port = strchr(*host, ':'))) {
132 static void wget_connect(char *host, char *port)
136 xgetaddrinfo(host, port, AF_UNSPEC, SOCK_STREAM, 0, 0);
154 if (tls_connect(TT.tls, host, port) != 0)
166 xgetaddrinfo(host, port, AF_UNSPEC, SOCK_STREAM, 0, 0);
173 if (!SSL_set_tlsext_host_name(TT.ssl, host))
278 char *body, *index, *host, *port, *path;
286 wget_info(TT.url, &host, &port, &path);
290 path, host, agent);
293 wget_connect(host, port);