2 # get_html -- get a web page from a remote server
4 # Original Author: Jeff Korn <jlk@cs.princeton.edu>
5 # Modified for bash by Chet Ramey <chet@po.cwru.edu>
7 # Example: get_html cnswww.cns.cwru.edu /~chet/ | more
14 echo "usage: $FUNCNAME hostname path [port]" >&2
21 exec 3<> /dev/tcp/$host/$port || {
22 echo "$FUNCNAME: $host/$port: cannot connect" >&2
26 echo -e "GET $2 HTTP/1.0\n" >&3