return;
uclient_get_addr(addr, &port, &cl->remote_addr);
- fprintf(stderr, "Connecting to %s %s:%d\n", cl->url->host, addr, port);
+ fprintf(stderr, "Connecting to %s:%d\n", addr, port);
}
static void init_request(struct uclient *cl)
auth_str = username;
}
+ if (!quiet)
+ fprintf(stderr, "Downloading '%s'\n", argv[0]);
+
cl = uclient_new(argv[0], auth_str, &cb);
if (!cl) {
fprintf(stderr, "Failed to allocate uclient context\n");