I\'m trying to play around with netcat to learn more about how HTTP works. I\'d like to script some of it in bash or Perl, but I\'ve hit upon a stumbling block early on in m
Another way is to use what is called the 'heredoc' convention.
$ nc -n -i 1 10.1.1.2 80 < HEAD / HTTP/1.0 > > EOF