Is there any alternative for netcat utility? I want to run docker API and netcat utility is not installed on client system. docker command example - echo -e \"GET /info HTTP/1.0
According to this,
(exec 3<>/dev/tcp/url/port; cat >&3; cat <&3; exec 3<&-)
can replace nc/netcat. It should work in any bash based terminal.
Example:
printf "Hello World!" | (exec 3<>/dev/tcp/termbin.com/9999; cat >&3; cat <&3; exec 3<&-)
returns a link.