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.
```
curl --libcurl debug.c tcp://localhost:8080
```
Still, `nc` is the GOAT for this.
