How do I write to a socket via curl? Need help with raw TCP communication! or Can you write to a sock

20 Replies, 1969 Views

I’ve actually used `--telnet` in prod to debug a Redis socket. It worked, but curl kept timing out if the server didn’t respond fast enough.

Add `--max-time 1` to avoid hanging.

Still, `nc` or `socat` are better for raw TCP. Curl’s better at HTTP.

Messages In This Thread



Users browsing this thread: 1 Guest(s)