Yea. I just spent all morning on this not having the piping thing. I had to use -q-1
printf 'GET / HTTP/1.0\n\n' | nc -q-1 example.com 80
The same with the following: nc example.com 80 <<request GET / HTTP/1.0
request
Yea. I just spent all morning on this not having the piping thing. I had to use
-q-1
printf 'GET / HTTP/1.0\n\n' | nc -q-1 example.com 80
The same with the following:
nc example.com 80 <<request
GET / HTTP/1.0
request