summaryrefslogtreecommitdiffstats
path: root/ship/lib
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-12-09 22:17:22 +0100
committermakefu <github@syntax-fehler.de>2013-12-09 22:17:22 +0100
commit62be5c21f9fa17f7452acf8064800911faae051d (patch)
tree0c7dd937b95517c7c2098517e678666756ecb4c0 /ship/lib
parent93649c0d464de3b62dfd7fbc717386e6905bbbd2 (diff)
make http_head both look similar when using either wget or curl
Diffstat (limited to 'ship/lib')
-rw-r--r--ship/lib/network10
1 files changed, 5 insertions, 5 deletions
diff --git a/ship/lib/network b/ship/lib/network
index 29eefdbe..90d7ec4f 100644
--- a/ship/lib/network
+++ b/ship/lib/network
@@ -10,7 +10,7 @@ which_get_loader(){
echo "wget -O-"
fi
else
- echo "curl"
+ echo "curl -s"
fi
return 0
}
@@ -21,19 +21,19 @@ which_head_loader(){
warn "Please install curl or wget"
return 1
else
- echo "wget -O- --spider"
+ echo "wget -O- --spider -S -q"
fi
else
- echo "curl -I"
+ echo "curl -I -s"
fi
return 0
}
http_get(){
- eval "$(which_get_loader)" "${1?please provide url}"
+ eval "$(which_get_loader)" "${1?please provide url}" 2>&1
}
http_head(){
- eval "$(which_head_loader)" "${1?please provide url}"
+ eval "$(which_head_loader)" "${1?please provide url}" 2>&1
}
which_telnet(){