English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

thinking about 2 servers on a network . there is only http and ftp protocols . 1st server have a service that wait until receiveing a url related to a file resource through something like website. this file placed on 2nd server. now 1st server must be able to download that file on it`s local disk space .
i want to know how i can do this.

2007-06-04 06:21:39 · 5 answers · asked by Alfered109 2 in Computers & Internet Computer Networking

1-URL Transfered through a webservice .
2-there is no need to transfer files on both ways.
3-this will be a 'push'.
if the file is not ready , the server report it as a bad link .
if the file size is larger than several MBs , the server can not be able to download the file (because of bandwidth and storage limits).
architecture is not important matter , dotNet or Java2 are applicable .

2007-06-04 07:03:09 · update #1

5 answers

It's possible with ftp, but most clients are interactive; that means the server won't do it automatically.
HTTP is an option but you will have to write software for it.
Webdav is an HTTP related protocol designed for file transfers. I have no experience with it.

If you have ssh between both machines, you suddenly have LOTS more options: you can mount a share on one machine, or use scp (secure copy) or rsync (automatic sync).

2007-06-04 06:32:10 · answer #1 · answered by mgerben 5 · 0 0

You need to define this problem more clearly. I think you could do this by creating a FileWatcher in your windows Service, but you don't even say if these are Windows Servers? We can safely assume that they are, but some people do use other stuff.

Issues to consider:
1. How is the URL transferred?
2. Does this need to work both ways?
3. Do you think this will be a 'push' or a 'pull'? That is, will the receiving server have the option of downloading the file whenever it's ready, or will it be pushed out from the other server and the receiver has to always be ready to receive it.
4. What is your architecture in general, and what languages and technologies are you using for this system and things it will interact with. (are you in the Microsoft ASP.Net/C#/SQL Server world, or are you living in a open-source space or something like that)
5. What problems do you foresee and how will you deal with it. Examples: what if one of the servers goes down, what if you run out of hard drive space, what happens if the file can't be downloaded....


Are you beginning to see why Yahoo Answers is the wrong place to discuss this? You're just starting out and you have a lot of questions... you need to be on a good forum where you can get discussion and input from more people and will be able to respond back and forth. Seriously, if you're nice about it, me and the others on CodeProject will hand-hold you all the way through this. The Yahoo 'one-question-one-answer' thing is totally inappropriate for what you need right now.

2007-06-04 06:35:55 · answer #2 · answered by polly_peptide 5 · 0 0

If the OS on these is linux you can use RSYNC or SSH to accomplish the transfer with out any headaches at all.

other wise you need a good automated FTP program to move the file. I personnaly like bulletproof, it has timers which will automatically transfer on a schedule for you.

2007-06-04 09:55:00 · answer #3 · answered by Tracy L 7 · 0 0

You are far better off setting up ssh on both machines, you can then fully automate the transfer directly to the correct location. This only requires the addition of the ssh port 22.

2007-06-04 07:22:23 · answer #4 · answered by Anonymous · 0 0

@individual who stated bisexuals in simple terms think of everybody is warm and pans prefer romantic thoughts first. in simple terms considering you're pan does no longer propose you ought to experience romantic thoughts in direction of somebody till now you'll be sexually interested in them. it incredibly is demisexuality. the type between bisexuality and pansexuality is that bisexual everybody is interested in extra effective than one gender. this could be women human beings and persons who become conscious of as female or this could be women folk and adult males human beings. It relies upon on the guy. Pansexual everybody is interested in all genders, whether or no longer they fall on the gender binary or no longer. This opens it as much as adult males, women human beings, agender, transwomen, transmen, nonbinary, and each little thing in between. this does not propose that bisexual human beings won't be able to be interested in those genders as properly, they only tend to have possibilities. Bi is meaning they have possibilities. Pan potential they're interested in ALL genders. additionally, romantic thoughts are distinctive than sexual thoughts. human beings could be panromantic yet heterosexual and etc.

2017-01-10 12:40:15 · answer #5 · answered by ? 4 · 0 0

fedest.com, questions and answers