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

18 Replies, 1972 Views

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

If you’re dealing with raw data, I’d recommend using `socat` or even a quick Python script. Curl is more for HTTP/HTTPS, so it’s not ideal for this.

Messages In This Thread



Users browsing this thread: 1 Guest(s)