}
if (opt_verbose)
- fprintf(stderr, "Request: '%s'\n", msg);
+ fprintf(stderr, "Request:'%s'\n", msg);
if (ping) {
#if HAVE_SIGACTION
int fsize = 0;
struct addrinfo *AI = NULL;
+ if (opt_verbose)
+ fprintf(stderr, "Resolving... %s\n", hostname);
+
/* Connect to the server */
if (localhost) {
iaddr.SetPort(port);
+ if (opt_verbose) {
+ char ipbuf[MAX_IPSTRLEN];
+ fprintf(stderr, "Connecting... %s(%s)\n", hostname, iaddr.NtoA(ipbuf, MAX_IPSTRLEN));
+ }
+
if (client_comm_connect(conn, iaddr, ping ? &tv1 : NULL) < 0) {
char hostnameBuf[MAX_IPSTRLEN];
iaddr.ToURL(hostnameBuf, MAX_IPSTRLEN);
}
exit(1);
}
+ if (opt_verbose) {
+ char ipbuf[MAX_IPSTRLEN];
+ fprintf(stderr, "Connected to: %s (%s)\n", hostname, iaddr.NtoA(ipbuf, MAX_IPSTRLEN));
+ }
/* Send the HTTP request */
bytesWritten = mywrite(conn, msg, strlen(msg));