Q:

HTTP to FTP with remote client

short version: a working equivalent to scp -3 http://user:pass@example.org/somefile ftp://user:pass@ftpserver/my/path
detailed version:
    +------+               +-------+             +-------------+
    | HTTP +---------------> linux +------------->  FTP server |
    +------+    WWW        +-------+    LAN      +-------------+

I have a HTTP ressource on the web. let's say http://example.org/somefile
I have a linux host (RaspberryPi) connected to the below FTP server
I have a FTP server (mediacenter box)

I want to transfer the HTTP file to the FTP server through the linux host. without storing the whole file on the linux host, just acting as buffer between endpoints

What is the easy way to do this ?
thanks

A:

Mount the ftp directory:
curlftpfs ftp.yourserver.com /mnt/ftp/ -o user=username:password

Then you can easily download the selected files to this folder:
wget http://user:pass@example.org/somefile -O /mnt/ftp/your/path/somefile

At finally umount ftp:
fusermount -u /mnt/ftp 

