Lines Matching defs:url

313     char *addr, *scope_id, *strp, *host, *url = *urlp;
318 if (url[0] != '/' || url[1] != '/') {
321 host = url + 2;
322 url = strchr(host, '/');
323 if (url == NULL) {
324 url = "";
327 *(url++) = '\0'; /* skip separating '/' */
374 *urlp = url;
404 char *url, *user = NULL, *password = NULL, *err, *host = NULL;
411 /* Set url to the first char after "scheme://" */
412 if ((url = strchr(r->uri, ':')) == NULL || url[1] != '/' || url[2] != '/') {
416 url = apr_pstrdup(r->pool, &url[1]); /* make it point to "//", which is what proxy_canon_netloc expects */
418 err = ap_proxy_canon_netloc(r->pool, &url, &user, &password, &host, &port);
840 proxy_dir_conf *conf, const char *url)
853 return url;
856 l1 = strlen(url);
890 * translate url http://example.com/foo/bar/that to /bash/that
899 && strncasecmp((*worker)->s->name, url, l2) == 0
900 && strncmp(urlpart, url + l2, l3) == 0) {
901 u = apr_pstrcat(r->pool, ent[i].fake, &url[l2 + l3],
906 else if (l1 >= l2 && strncasecmp((*worker)->s->name, url, l2) == 0) {
908 if ((ent[i].fake[0] == '/') && (ent[i].fake[1] == 0) && (url[l2] == '/')) {
909 u = apr_pstrdup(r->pool, &url[l2]);
911 u = apr_pstrcat(r->pool, ent[i].fake, &url[l2], NULL);
919 const char *part = url;
922 part = ap_strstr_c(url, "://");
929 part = url;
933 part = url;
943 return url;
1083 const char *url,
1087 char *c, *uri = apr_pstrdup(p, url);
1117 const char *url)
1120 if (!url) {
1123 if (apr_uri_parse(p, url, &puri) != APR_SUCCESS) {
1124 return apr_psprintf(p, "unable to parse: %s", url);
1142 const char *url,
1148 char *c, *q, *uri = apr_pstrdup(p, url);
1554 const char *url)
1566 if (!url) {
1570 url = ap_proxy_de_socketfy(p, url);
1572 c = ap_strchr_c(url, ':');
1577 url_length = strlen(url);
1578 url_copy = apr_pstrmemdup(p, url, url_length);
1589 pathstart = url_copy + (c - url);
1603 * scheme://hostname[:port] matches between worker and url.
1656 const char *url,
1669 ptr = ap_strchr((char *)url, '|');
1672 rv = apr_uri_parse(p, url, &urisock);
1675 url = ptr+1; /* so we get the scheme for the uds */
1681 rv = apr_uri_parse(p, url, &uri);
1684 return apr_pstrcat(p, "Unable to parse URL: ", url, NULL);
1687 return apr_pstrcat(p, "URL must be absolute!: ", url, NULL);
1695 return apr_pstrcat(p, "URL must be absolute!: ", url, NULL);
1787 const char *url,
1792 err = ap_proxy_define_worker(p, worker, balancer, conf, url, do_malloc);
1980 * were passed a UDS url (eg: from mod_proxy) and adjust uds_path
1983 static void fix_uds_filename(request_rec *r, char **url)
1999 *url = apr_pstrdup(r->pool, rurl); /* so we get the scheme for the uds */
2003 "*: rewrite of url due to UDS(%s): %s (%s)",
2004 sockpath, *url, r->filename);
2015 proxy_server_conf *conf, char **url)
2019 access_status = proxy_run_pre_request(worker, balancer, r, conf, url);
2021 *worker = ap_proxy_get_worker(r->pool, NULL, conf, *url);
2025 (*worker)->s->scheme, (*worker)->s->name, *url);
2027 fix_uds_filename(r, url);
2033 "*: found forward proxy worker for %s", *url);
2048 "*: using default reverse proxy worker for %s (no keepalive)", *url);
2058 fix_uds_filename(r, url);
2065 "all workers are busy. Unable to serve %s", *url);
2239 char **url,
2255 if (APR_SUCCESS != apr_uri_parse(p, *url, uri)) {
2257 apr_pstrcat(p,"URI cannot be parsed: ", *url,
2265 "connecting %s to %s:%d", *url, uri->hostname, uri->port);
2278 *url = apr_pstrcat(p, uri->path, uri->query ? "?" : "",
2474 "connected %s to %s:%d", *url, conn->hostname, conn->port);
3337 char *url, char *server_portstr,
3374 buf = apr_pstrcat(p, r->method, " ", url, " HTTP/1.0" CRLF, NULL);
3377 buf = apr_pstrcat(p, r->method, " ", url, " HTTP/1.1" CRLF, NULL);