blob: 896cc7fa1af6a46e01a299eea6fac7f93136ab90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 }'
|