logoalt Hacker News

bitmasher9today at 6:21 PM3 repliesview on HN

Why wouldn’t you use curl for the quick test?


Replies

hnavtoday at 6:31 PM

Sometimes you want to do something that curl cannot express, e.g. timing, protocol oddities, etc. For example you may want to issue a CONNECT to an echo server through a proxy and observe the bytes flowing back and forth. You may want to see what happens when conflicting hop-by-hop headers are specified without worrying about the client's (curl's) interpretation of them. A simple nc -c (or openssl s_client -crlf) lets you do all of that.

show 1 reply
asmnzxklopqwtoday at 7:59 PM

Because curl is not installed in minimal docker images.

show 1 reply
a-dubtoday at 6:49 PM

because in those days there was no curl, or wget. and then when there was, there was no guarantee they'd be installed.

telnet was always there though. it also worked for speaking all the other plaintext internet protocols. (imap, pop, smtp, etc)

show 2 replies