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

22 Replies, 2602 Views

Hey, just wanted to add that you can also use named pipes if you're into more advanced stuff.

```bash
mkfifo mypipe
your_command > mypipe &
curl -d @mypipe http://example.com
```

This avoids writing to disk entirely. Might be overkill for simple tasks, but it's cool to know!

Messages In This Thread



Users browsing this thread: 1 Guest(s)