How can I write to a socket via curl? Need help with raw socket communication!

18 Replies, 2159 Views

Hey! Writing to a socket via curl is tricky, but doable. For Unix sockets, use `--unix-socket`. For TCP, you can try `telnet://` or `raw://`, but it’s not super reliable.

If you’re dealing with raw data, I’d suggest using `nc` or even a quick Python script. Curl is great, but it’s not the best for this use case.

Messages In This Thread



Users browsing this thread: 1 Guest(s)