summaryrefslogtreecommitdiffstats
path: root/ship/lib/network
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-01-14 03:59:49 +0100
committerlassulus <lassulus@googlemail.com>2014-01-14 03:59:49 +0100
commit5c5fc52820e94effbc64d0f248a8e262945c2ce3 (patch)
treec54a336c93253afbe89bd8489516fd1379394f6f /ship/lib/network
parentb137ee46632b884c9c74f28ed38c3e6e89c17dcc (diff)
parentda8f0952253b7463ec1951dcdee0127fe7782c88 (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'ship/lib/network')
-rw-r--r--ship/lib/network8
1 files changed, 4 insertions, 4 deletions
diff --git a/ship/lib/network b/ship/lib/network
index 68e29301..974fb282 100644
--- a/ship/lib/network
+++ b/ship/lib/network
@@ -7,10 +7,10 @@ which_get_loader(){
warn "Please install curl or wget"
return 1
else
- echo "wget -O-"
+ echo "wget -q -O-"
fi
else
- echo "curl -s"
+ echo "curl -L -s"
fi
return 0
}
@@ -24,13 +24,13 @@ which_head_loader(){
echo "wget -O- --spider -S -q"
fi
else
- echo "curl -I -s"
+ echo "curl -L -I -s"
fi
return 0
}
http_get(){
- eval "$(which_get_loader)" "${1?please provide url}" 2>&1
+ eval "$(which_get_loader)" "${1?please provide url}"
}
http_head(){
eval "$(which_head_loader)" "${1?please provide url}" 2>&1