• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/tnftp/src/

Lines Matching refs:host

292  *	<type>://[<user>[:<password>]@]<host>[:<port>][/<path>]
304 * host and the URL-path removed, but any additional leading slashes
311 * "http://host" "/"
312 * "http://host/" "/"
313 * "http://host/path" "/path"
314 * "file://host/dir/file" "dir/file"
315 * "ftp://host" ""
316 * "ftp://host/" ""
317 * "ftp://host//" "/"
318 * "ftp://host/dir/file" "dir/file"
319 * "ftp://host//dir/file" "/dir/file"
323 char **uuser, char **pass, char **host, char **port,
331 || pass == NULL || host == NULL || port == NULL || portnum == NULL
338 *uuser = *pass = *host = *port = *path = NULL;
362 FREEPTR(*host);
371 /* find [user[:pass]@]host[:port] */
432 *host = thost;
458 DPRINTF("parse_url: user `%s' pass `%s' host %s port %s(%d) "
461 STRorNULL(*host), STRorNULL(*port),
502 char *uuser, *pass, *host, *port, *path;
523 uuser = pass = host = path = decodedpath = puser = ppass = NULL;
525 if (parse_url(url, "URL", &urltype, &uuser, &pass, &host, &port,
529 if (urltype == FILE_URL_T && ! EMPTYSTRING(host)
530 && strcasecmp(host, "localhost") != 0) {
541 warnx("Invalid URL (no file after host) `%s'", url);
629 hlen = strlen(host);
644 if (strncasecmp(host + hlen - plen,
680 if (isipv6addr(host) &&
681 strchr(host, '%') != NULL) {
684 host);
691 FREEPTR(host);
692 host = phost;
706 error = getaddrinfo(host, port, &hints, &res0);
708 warnx("Can't lookup `%s:%s': %s", host, port,
714 host = res0->ai_canonname;
753 warnx("Can't connect to `%s:%s'", host, port);
768 host, port);
777 if (strchr(host, ':')) {
784 h = ftp_strdup(host);
792 fprintf(fin, "Host: %s", host);
1313 warnx("Improper response from `%s:%s'", host, port);
1334 FREEPTR(host);
1373 char *host, *path, *dir, *file, *uuser, *pass;
1383 host = path = dir = file = uuser = pass = NULL;
1390 &host, &port, &portnum, &path) == -1) ||
1392 EMPTYSTRING(host)) {
1418 } else { /* classic style `[user@]host:[file]' */
1420 host = ftp_strdup(url);
1421 cp = strchr(host, '@');
1424 uuser = host;
1426 host = ftp_strdup(cp + 1);
1428 cp = strchr(host, ':');
1434 if (EMPTYSTRING(host))
1441 * If we are dealing with classic `[user@]host:[path]' syntax,
1443 * form `host:/file') means that we should do "CWD /" before
1446 * But if we are dealing with URLs like `ftp://host/path' then
1448 * `ftp://host//file') means that we should do `CWD ' (with an
1454 * classic `[user@]host:[file]' or URL `ftp://host/file'.)
1460 * resulting from an URL of the form `ftp://host//file'.)
1480 DPRINTF("fetch_ftp: user `%s' pass `%s' host %s port %s "
1483 STRorNULL(host), STRorNULL(port),
1501 xargv[1] = host;
1515 (connected == 1 && !ftp_login(host, uuser, pass))) {
1516 warnx("Can't connect or login to host `%s:%s'",
1517 host, port ? port : "?");
1542 * If we are dealing with a classic `[user@]host:[path]'
1547 * If we are dealing with an `ftp://host/path' URL
1562 * host: dir="", urltype=CLASSIC_URL_T
1564 * host:file dir=NULL, urltype=CLASSIC_URL_T
1566 * host:dir/ dir="dir", urltype=CLASSIC_URL_T
1568 * ftp://host/ dir="", urltype=FTP_URL_T
1570 * ftp://host/dir/ dir="dir", urltype=FTP_URL_T
1572 * ftp://host/file dir=NULL, urltype=FTP_URL_T
1574 * ftp://host//file dir="", urltype=FTP_URL_T
1576 * host:/file dir="/", urltype=CLASSIC_URL_T
1578 * ftp://host///file dir="/", urltype=FTP_URL_T
1580 * ftp://host/%2F/file dir="%2F", urltype=FTP_URL_T
1582 * ftp://host/foo/file dir="foo", urltype=FTP_URL_T
1584 * ftp://host/foo/bar/file dir="foo/bar"
1586 * ftp://host//foo/bar/file dir="/foo/bar"
1588 * ftp://host/foo//bar/file dir="foo//bar"
1590 * ftp://host/%2F/foo/bar/file dir="%2F/foo/bar"
1592 * ftp://host/%2Ffoo/bar/file dir="%2Ffoo/bar"
1594 * ftp://host/%2Ffoo%2Fbar/file dir="%2Ffoo%2Fbar"
1596 * ftp://host/%2Ffoo%2Fbar%2Ffile dir=NULL
1688 FREEPTR(host);
1700 * "host:path", "ftp://host/path" if $ftpproxy, call fetch_url() else
1702 * "http://host/path" call fetch_url() to use HTTP
1757 * Try FTP URL-style and host:file arguments next.