Bash compiled with --enable-net-redirections is pretty powerful. ( Zsh has similar features.) Hell, I'll even drop HTTP Basic Auth here.
Of course, this is not a very good HTTP / 1.1 client; for example, it does not support striping. But this is quite rare in practice.
read_http() { local url host path login port url="${1#http://}" host="${url%%/*}" path="${url#${host}}" login="${host%${host#*@}}" host="${host#${login}@}" port="${host#${host%:*}}" host="${host%:${port}}" ( exec 3<>"/dev/tcp/${host}/${port:-80}" || exit $? >&3 echo -n "GET ${path:-/} HTTP/1.1"$'\r\n' >&3 echo -n "Host: ${host}"$'\r\n' [[ -n ${login} ]] && >&3 echo -n "Authorization: Basic $(uuencode <<<"${login}")"$'\r\n' >&3 echo -n $'\r\n' while read line <&3; do line="${line%$'\r'}" echo "${line}" >&2 [[ -z ${line} ]] && break done dd <&3 ) }
OTOH, if you have Perl LWP installed, it should go with a sample binary name named GET & hellip;
source share