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

20 Replies, 1916 Views

Pro tip: If you’re on Linux, just use `/dev/tcp`.

```
echo "hello" > /dev/tcp/127.0.0.1/8080
```

Bash magic. No tools needed.

Curl’s cool, but sometimes the simplest solutions are right there.

Messages In This Thread



Users browsing this thread: 1 Guest(s)