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

+- Proxy Community (https://proxycommunity.com/forum)
+-- Forum: Technical Community Support (https://proxycommunity.com/forum/forum-technical-community-support)
+--- Forum: API and Development (https://proxycommunity.com/forum/forum-api-and-development)
+--- Thread: How do I write to a socket via curl? Need help with raw TCP communication! or Can you write to a sock (/thread-how-do-i-write-to-a-socket-via-curl-need-help-with-raw-tcp-communication-or-can-you-write-to-a-sock)

Pages: 1 2 3


“” - secureSprintX - 24-03-2025

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.