Lines Matching refs:url
187 char * http_client_url_parse(const char *url, struct sockaddr_in *dst,
192 u = os_strdup(url);
215 url, addr, port);
236 struct http_client * http_client_url(const char *url,
248 if (os_strncmp(url, "http://", 7) != 0)
250 u = http_client_url_parse(url, &dst, &path);
255 req_buf = wpabuf_alloc(os_strlen(url) + 1000);
317 char * http_link_update(char *url, const char *base)
326 if (url == NULL)
329 if (os_strncmp(url, "http://", 7) == 0)
330 return url; /* absolute link */
333 return url; /* unable to handle base URL */
335 len = os_strlen(url) + 1 + os_strlen(base) + 1;
338 return url; /* failed */
340 if (url[0] == '/') {
343 os_snprintf(n, len, "%s%s", base, url);
346 os_memcpy(n + (pos - base), url, os_strlen(url) + 1);
351 os_snprintf(n, len, "%s/%s", base, url);
354 os_memcpy(n + (pos - base) + 1, url, os_strlen(url) +
359 os_free(url);