diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-30 07:49:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-30 07:49:37 +0000 |
commit | b100fb6c6a472951ea6b284fa67e068300e79dc1 (patch) | |
tree | 8f7bdb32b38ba8a528a2d760c5b1cc911c6e9696 /usr.bin/ftp | |
parent | f7988a30c9bbd0e4f42f9d9a44f03ab408d0ee51 (diff) |
something was too verboase in http fetch mode
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r-- | usr.bin/ftp/fetch.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index f923f135f6d..4d01874892e 100644 --- a/usr.bin/ftp/fetch.c +++ b/usr.bin/ftp/fetch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fetch.c,v 1.22 1998/09/28 13:38:22 deraadt Exp $ */ +/* $OpenBSD: fetch.c,v 1.23 1998/09/30 07:49:36 deraadt Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- @@ -38,7 +38,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: fetch.c,v 1.22 1998/09/28 13:38:22 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: fetch.c,v 1.23 1998/09/30 07:49:36 deraadt Exp $"; #endif /* not lint */ /* @@ -348,10 +348,13 @@ url_get(origline, proxyenv, outfile) * Construct and send the request. We're expecting a return * status of "200". Proxy requests don't want leading /. */ - if (!proxy) - fprintf(ttyout, "Requesting %s\n", origline); - else - fprintf(ttyout, "Requesting %s (via %s)\n", origline, proxyenv); + if (verbose) { + if (!proxy) + fprintf(ttyout, "Requesting %s\n", origline); + else + fprintf(ttyout, "Requesting %s (via %s)\n", + origline, proxyenv); + } snprintf(buf, sizeof(buf), "GET %s%s HTTP/1.0\r\nHost: %s\r\n\r\n", proxy ? "" : "/", path, host); len = strlen(buf); |