The bsd version does not support requests via piping too. This works with nc.traditional, but does not with nc.openbsd: printf 'GET / HTTP/1.0\n\n' | nc example.com 80
The same with the following: nc example.com 80 <<request GET / HTTP/1.0
request
The bsd version does not support requests via piping too.
This works with nc.traditional, but does not with nc.openbsd:
printf 'GET / HTTP/1.0\n\n' | nc example.com 80
The same with the following:
nc example.com 80 <<request
GET / HTTP/1.0
request