check_http first lines
Compare changes
- Hahn Axel (hahn) authored
+ 39
− 26
@@ -22,7 +22,10 @@ function showHelp(){
@@ -31,32 +34,29 @@ OPTIONS:
@@ -71,9 +71,14 @@ fi
@@ -85,8 +90,7 @@ if [ -z "$sUrl" ]; then
@@ -97,6 +101,10 @@ iHeaderEnd=$( echo "$out" | grep -n ^$'\r' | cut -f 1 -d ':')
@@ -105,15 +113,15 @@ _body=$( echo "$out" | sed -n "${iHeaderEnd},\$p")
@@ -122,8 +130,9 @@ if [ -n "$sHeader" ]; then
@@ -132,16 +141,20 @@ if [ -n "$sBody" ]; then