summaryrefslogtreecommitdiff
path: root/script/https@.sh
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-15 15:49:29 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-15 15:49:29 +0200
commitc46339470309c24b142e1f66bece51db60bde64f (patch)
treeba1d65b123cb4f686ce045810912fb9957f8ff5d /script/https@.sh
parent5e84d7b76ce1cccdaf0900d62a94d0d1d88cdd62 (diff)
move shell scripts into the script directorymeson
This corrects a build system issue as the associated build file was already in the script directory.
Diffstat (limited to 'script/https@.sh')
-rw-r--r--script/https@.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/script/https@.sh b/script/https@.sh
new file mode 100644
index 0000000..896cc7f
--- /dev/null
+++ b/script/https@.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+host=${1-0}
+path=${2-}
+port=${3-443}
+args=""
+if [ $# -gt 3 ]
+then
+ shift; shift; shift
+ args="$@"
+fi
+echo "GET /${path} HTTP/1.1
+Host: $host:$port
+" | sslclient -XRHl0 $args -- "$host" "$port" sh -c '
+ addcr >&7
+ exec delcr <&6
+' | awk '/^$/ { body=1; next } { if (body) print }'