Lines Matching defs:path
292 * <type>://[<user>[:<password>]@]<host>[:<port>][/<path>]
295 * user, pass and path.
301 * XXX: this is not totally RFC3986 compliant; <path> will have the
304 * host and the URL-path removed, but any additional leading slashes
305 * in the URL-path are retained (because they imply that we should
309 * input URL output path
313 * "http://host/path" "/path"
324 in_port_t *portnum, char **path)
332 || path == NULL)
338 *uuser = *pass = *host = *port = *path = NULL;
364 FREEPTR(*path);
381 *path = ftp_strdup(ep);
451 if (*path == NULL) {
455 *path = ftp_strdup(emptypath);
459 "path `%s'\n",
462 *portnum ? *portnum : -1, STRorNULL(*path));
502 char *uuser, *pass, *host, *port, *path;
523 uuser = pass = host = path = decodedpath = puser = ppass = NULL;
526 &portnum, &path) == -1)
535 if (EMPTYSTRING(path)) {
546 decodedpath = ftp_strdup(path);
695 FREEPTR(path);
696 path = ftp_strdup(url);
772 fprintf(fin, "GET %s HTTP/1.0\r\n", path);
776 fprintf(fin, "GET %s HTTP/1.1\r\n", path);
1336 FREEPTR(path);
1373 char *host, *path, *dir, *file, *uuser, *pass;
1383 host = path = dir = file = uuser = pass = NULL;
1390 &host, &port, &portnum, &path) == -1) ||
1397 * Note: Don't url_decode(path) here. We need to keep the
1402 if (! EMPTYSTRING(path) && (cp = strrchr(path, ';')) != NULL) {
1431 path = ftp_strdup(cp + 1);
1438 dir = path;
1441 * If we are dealing with classic `[user@]host:[path]' syntax,
1442 * then a path of the form `/file' (resulting from input of the
1446 * But if we are dealing with URLs like `ftp://host/path' then
1447 * a path of the form `/file' (resulting from a URL of the form
1452 * If the path does not contain / at all, we set dir=NULL.
1453 * (We get a path without any slashes if we are dealing with
1458 * file part of the path. (This will be the empty string if
1459 * and only if we are dealing with a path of the form `/file'
1481 "path `%s' dir `%s' file `%s'\n",
1484 STRorNULL(path), STRorNULL(dir), STRorNULL(file));
1542 * If we are dealing with a classic `[user@]host:[path]'
1547 * If we are dealing with an `ftp://host/path' URL
1550 * in the path, and we have to interpret %hex escaping
1553 * slashes in the path) and RFC3986 says that we should
1689 FREEPTR(path);
1700 * "host:path", "ftp://host/path" if $ftpproxy, call fetch_url() else
1702 * "http://host/path" call fetch_url() to use HTTP
1703 * "file:///path" call fetch_url() to copy
1772 * If an ftp path has a trailing "/", the path will be cd-ed into and
1831 char *uargv[4], *path, *pathsep;
1846 path = ftp_strdup(uploadserver);
1847 len = strlen(path);
1848 if (path[len - 1] != '/' && path[len - 1] != ':') {
1853 len = strlen(uploadserver) + 2; /* path + "/" + "\0" */
1854 free(path);
1855 path = (char *)ftp_malloc(len);
1856 (void)strlcpy(path, uploadserver, len);
1857 (void)strlcat(path, "/", len);
1861 pathsep = strrchr(path, '/');
1863 pathsep = strrchr(path, ':');
1865 warnx("Invalid URL `%s'", path);
1878 path, STRorNULL(uargv[2]));
1881 rval = auto_fetch(1, &path);
1906 free(path);