Lines Matching refs:url
350 web_session_control(PKG_ERR *err, char *url, char *dwnld_dir, in web_session_control() argument
363 if (!parse_url_proxy(err, url, proxy, proxy_port)) { in web_session_control()
406 ps->url.hport.hostname); in web_session_control()
412 ps->url.hport.hostname); in web_session_control()
437 ps->url.hport.hostname); in web_session_control()
443 ps->url.hport.hostname); in web_session_control()
473 ps->url.hport.hostname); in web_session_control()
479 ps->url.hport.hostname); in web_session_control()
499 pkgerr_add(err, PKGERR_WEB, gettext(ERR_DWNLD), url); in web_session_control()
1617 parse_url_proxy(PKG_ERR *err, char *url, char *proxy, ushort_t proxy_port) in parse_url_proxy() argument
1620 if (!path_valid(url)) { in parse_url_proxy()
1625 if (url_parse(url, &ps->url) != URL_PARSE_SUCCESS) { in parse_url_proxy()
1626 pkgerr_add(err, PKGERR_WEB, gettext(ERR_PARSE_URL), url); in parse_url_proxy()
1659 if ((ps->hps = http_srv_init(&ps->url)) == NULL) { in web_setup()
1660 pkgerr_add(err, PKGERR_WEB, gettext(ERR_INIT_SESS), ps->url); in web_setup()
1671 pkgerr_add(err, PKGERR_WEB, gettext(ERR_INIT_SESS), ps->url); in web_setup()
1676 pkgerr_add(err, PKGERR_WEB, gettext(ERR_INIT_SESS), ps->url); in web_setup()
1681 pkgerr_add(err, PKGERR_WEB, gettext(ERR_INIT_SESS), ps->url); in web_setup()
1686 pkgerr_add(err, PKGERR_WEB, gettext(ERR_INIT_SESS), ps->url); in web_setup()
1721 if (ps->url.https == B_TRUE) { in web_connect()
1793 ps->url.hport.hostname); in web_connect()
1925 if ((http_head_request(ps->hps, ps->url.abspath)) != 0) { in web_send_request()
1956 ps->url.hport.hostname); in web_send_request()
1969 if (http_get_range_request(ps->hps, ps->url.abspath, in web_send_request()
2005 ps->url.hport.hostname); in web_send_request()
2021 if ((http_get_request(ps->hps, ps->url.abspath)) in web_send_request()
2057 ps->url.hport.hostname); in web_send_request()
2195 if ((bname = get_endof_string(ps->url.abspath, '/')) == NULL) { in web_get_file()
2198 gettext(ERR_PARSE_URL), ps->url.abspath); in web_get_file()
2376 ps->url.hport.hostname); in web_get_file()
2625 ps->url.https = B_FALSE; in init_session()
2713 if (ps->url.abspath) in get_unique_filename()
2714 if (strlcat(buf, ps->url.abspath, PATH_MAX) >= PATH_MAX) in get_unique_filename()
2716 if (ps->url.hport.hostname) in get_unique_filename()
2717 if (isdigit((int)ps->url.hport.hostname[0])) { in get_unique_filename()
2718 if (strlcat(buf, ps->url.hport.hostname, PATH_MAX) in get_unique_filename()
2723 get_startof_string(ps->url.hport.hostname, '.')) in get_unique_filename()