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

18 Replies, 2043 Views

Hmm, curl isn’t really designed for raw socket stuff, but you can kinda force it. For TCP, try using `telnet://` or `raw://` in the URL.

If you’re stuck, I’d recommend checking out `socat`—it’s way better for raw socket communication. Curl is more for HTTP/HTTPS, so it’s not ideal for this.

Messages In This Thread



Users browsing this thread: 1 Guest(s)