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

18 Replies, 2100 Views

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

If you’re stuck, maybe check out `socat` or `nc`. They’re way better for raw socket stuff. Curl is more for HTTP, so it’s not ideal for this.

Messages In This Thread



Users browsing this thread: 1 Guest(s)