Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want my web server to fetch a file from another HTTP server. So that I do not need to download the file myself and upload it to my server.

Is this possible?

share|improve this question
    
A lot more information is necessary here. Yes it is possible, some devices as simple as a NAS box support torrent downloading. How to implement this service would depend on a lot of things, the very least would be what OS you're running. –  bacord Oct 14 '10 at 6:28
    
Depending on what you're trying to do, this might be more appropriate for Stack Overflow, as it could involve extensive programming. Once we find out more about your exact situation, we may want to consider moving it to Stack Overflow. –  nhinkle Oct 14 '10 at 6:30

1 Answer 1

Absolutely. Either ssh in and use wget or curl, or write a server-side script in e.g. PHP that performs the download.

share|improve this answer
    
I would add that the filesize is important. A server-side php script trying to download a huge file will fail when hitting the max_execution_time limit, so either this setting will have to be tuned, or dodged by using wget as background process, like this: exec('wget URL&') –  vtest Oct 14 '10 at 7:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.