3 ms·
I didn't know curl could do that. Something new every day... thanks! Having said that, in the world of my customers' systems, neither telnet nor curl can be pr
by abalashov 1y ago
I didn't know curl could do that. Something new every day... thanks!
Having said that, in the world of my customers' systems, neither telnet nor curl can be presumed, it seems.
- indigodaddy 1y agoMe either until a few years ago. My mind was well blown!
- indigodaddy 1y agoIntroduces more ambiguity in terms of replies, but you could also just use curl straight up: ~ $ curl -v 1.1.1.1:53 * Trying 1.1.1.1:53... * Connected to 1.1.1.1 (1.1.1.1) port 53 * using HTTP/1.x > GET / HTTP/1.1 > Host: 1.1.1.1:53 > User-Agent: curl/8.13.0 > Accept: / > * Request completely sent off * Empty reply from server * shutting down connection #0 curl: (52) Empty reply from server -- ~ $ curl -v 1.1.1.1:22 * Trying 1.1.1.1:22... ^C