Solved

Synchronize files/directories via HTTP

Posted on 2001-06-11
3
181 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Within a class, declare a function/method as static or not 16 132
FMX enumerated colours 2 84
sorting efficency of sorting algorithm 30 99
object oriented programming comparison 5 52
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

932 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now