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

20 Replies, 1915 Views

Why not just use Python?

```python
import socket
s = socket.socket()
s.connect(("localhost", 8080))
s.send(b"hello")
```

Way more control, and you’re not fighting curl’s quirks.

Messages In This Thread



Users browsing this thread: 1 Guest(s)