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

-- 
broken version of netcat installed by default
https://bugs.launchpad.net/bugs/590925
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to