How can I use curl with a file descriptor for advanced data handling?

22 Replies, 2291 Views

Hey! You can totally use curl with a file descriptor to pipe data directly. Here's a quick example:

```bash
echo "your data" | curl -X POST -d @- http://example.com
```

The `@-` tells curl to read from stdin. No need to write to a file first! Hope this helps.

Messages In This Thread



Users browsing this thread: 1 Guest(s)