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

20 Replies, 1705 Views

Here’s a dirty secret: curl’s `--libcurl` option lets you dump the raw output. Not exactly writing to a socket, but useful for debugging.

```
curl --libcurl debug.c tcp://localhost:8080
```

Still, `nc` is the GOAT for this.



Users browsing this thread: 1 Guest(s)