Lines Matching refs:host
37 static int httpclient_parse_url(const char *url, char *scheme, size_t max_scheme_len, char *host, s… in httpclient_parse_url() argument
94 memcpy(host, host_ptr, host_len); in httpclient_parse_url()
95 host[host_len] = '\0'; in httpclient_parse_url()
188 char *host = NULL; in httpclient_send_header() local
201 host = (char *) malloc(host_size); in httpclient_send_header()
202 if (!host) { in httpclient_send_header()
207 memset(host, 0, host_size); in httpclient_send_header()
234 …int res = httpclient_parse_url(url, scheme, sizeof(scheme), host, host_size, &(port), path, path_s… in httpclient_send_header()
244 …ache-Control: no-cache\r\nConnection: close\r\nHost: %s\r\n", meth, path, host); /* Write request … in httpclient_send_header()
328 if (host) { in httpclient_send_header()
329 free(host); in httpclient_send_header()
330 host = NULL; in httpclient_send_header()
726 char *host = NULL; in httpclient_conn() local
732 host = (char *) malloc(host_size); in httpclient_conn()
733 if (!host) { in httpclient_conn()
738 memset(host, 0, host_size); in httpclient_conn()
749 …int res = httpclient_parse_url(url, scheme, sizeof(scheme), host, host_size, &(client->remote_port… in httpclient_conn()
776 ret = http_tcp_conn_wrapper(client, host); in httpclient_conn()
780 ret = http_ssl_conn_wrapper(client, host); in httpclient_conn()
786 if (host) { in httpclient_conn()
787 free(host); in httpclient_conn()
788 host = NULL; in httpclient_conn()