summaryrefslogtreecommitdiff
path: root/src/https@.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/https@.sh')
-rw-r--r--src/https@.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/https@.sh b/src/https@.sh
new file mode 100644
index 0000000..6a902b7
--- /dev/null
+++ b/src/https@.sh
@@ -0,0 +1,15 @@
+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
+" | HOME/bin/sslclient -XRHl0 $args -- "$host" "$port" sh -c '
+ addcr >&7
+ exec HOME/bin/delcr <&6
+' | awk '/^$/ { body=1; next } { if (body) print }'