How to download a file directly to a web server

download

I'd like to download files directly to a hosted server, whether it's one I set up myself or a hosted service like Dropbox.

For example, when I download a podcast, instead of downloading it to my computer then uploading it to the server, how can I have it download directly to the cloud. My interest here is reducing the traffic I'm using over a metered data plan on my laptop, so I don't want my computer acting as a physical intermediary caching the file.

Ideally, there would be some way for me to have a download link and tell it to go directly to my server. How can I accomplish this?

I realize that this question is potentially involving a "webapp" and it is potentially involving "server administration" and since my goal is to cut my computer out of the loop I can see people saying this is off-topic and should be on another site. My issue is this: I don't know if this is going to be a webapp solution or a server solution but I do know regardless I'm going to be using a computer to get it done and I am replacing a function that's currently done on my computer so I figured I'd ask it here. If I was wrong and this definitely should be at webapps feel free to let me know or just migrate it.

Best Answer

You could:

  • VNC into the server, load a browser, and download the file.
  • SSH into the server, and do essentially the same but using the CLI (curl? wget?). It is possible to use SSH to execute a remote command; see ulidtko's answer for an example of this.
  • Create an application on the server that can queue up URL's of file downloads (a web service?). It can poll the queue, downloading each file until the queue is empty.
Related Question