Not sure if it's possible but I've been trying to use curl to essentially download a file from a HTTP location and output it onto an FTP server. I would really like some help if this is in fact possible.
curl http://example.com/down | curl -T - ftp://mysite.org/up
By default curl spits its output to stdout - we then pipe that into another instance of curl.
On the second instance, -T
tells curl to upload a file, and the -
tells it to take the file data from stdin (rather than from a file on disk).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With