Solved

Synchronize files/directories via HTTP

Posted on 2001-06-11
3
189 Views
Last Modified: 2011-04-14
Can anyone tell me Is there any algorithm or source-code that synchronize files/directories via HTTP.

thanks.

Dan
0
Comment
Question by:walkdan
3 Comments
 
LVL 6

Accepted Solution

by:
snoegler earned 100 total points
ID: 6176502
There is the same algorithm as there is for synchronizing files via serial cable or via network or ...

HTTP offers to possibility to
- read only the HEADer information of a file
- GET a file
- PUT a file ( which is only supported - if at all - after being authenticated )

which are all methods you need to forward synchronize _files_. To my knowledge, there is no standardized HTTP command to create a directory, to remove a directory or to remove a file.

1. For each directory in the local directory, perform this 2. For each file in the local directory, use the HTTP HEAD command to test if it is available on the destination machine. If it is, compare the date/time of the file (which is also returned by HEAD). If equal, you should be able to assume that is hasn't been modified, and continue at 4.
3. Upload the file via HTTP PUT.
4. If there are any files left in the current directory, continue with 2.

This leaves all not anymore used files and directories on the server. To get around this, you could use FTP which allows all of the tasks to be performed; let me know if you want that.
0
 
LVL 11

Expert Comment

by:griessh
ID: 6814514
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to accept "snoegler" comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points.
The link to the Community Support area is: http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

Please do not accept this comment as an answer!
======
Werner
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6833233
Per recommendation comment force/accepted by

Netminder
Community Support Moderator
Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question