Hi!

Thanks a lot for your answers!! I played around a bit and figured out,
that the timestamp is updated if the file is not empty. If the file is
empty the timestamp is NOT updated:

Client:

apfel:~ ts$ echo "abc" > test
apfel:~ ts$ touch test
apfel:~ ts$ ls -l test
-rw-r--r--  1 ts  staff  4 23 Jul 15:54 test
apfel:~ ts$ curl -T test -u zotero:secret http://abc.de/zotero/test
(...waiting for 2 minutes...)
apfel:~ ts$ touch test
apfel:~ ts$ ls -l test
-rw-r--r--  1 ts  staff  4 23 Jul 15:56 test
apfel:~ ts$ curl -T test -u zotero:secret http://abc.de/zotero/test

Server:

r...@abc:/etc/apache2# ls -l /var/zotero/test
-rw-r--r-- 1 www-data www-data 4 2010-07-23 15:54 test
r...@abc:/etc/apache2# ls -l /var/zotero/test
-rw-r--r-- 1 www-data www-data 4 2010-07-23 15:56 test

However, it does _not_ work if the file is empty:

Client:

apfel:~ ts$ touch empty
apfel:~ ts$ ls -l empty
-rw-r--r--  1 ts  staff  0 23 Jul 16:03 empty
apfel:~ ts$ curl -T empty -u zotero:secret http://abc.de/zotero/empty
(...waiting for 2 minutes...)
apfel:~ ts$ touch empty
apfel:~ ts$ ls -l empty
-rw-r--r--  1 ts  staff  0 23 Jul 16:05 empty
apfel:~ ts$ curl -T empty -u zotero:secret http://abc.de/zotero/empty

Server:

r...@abc:/etc/apache2# ls -l /var/zotero/empty
-rw-r--r-- 1 www-data www-data 0 2010-07-23 16:01 /var/zotero/empty
r...@abc:/etc/apache2# ls -l /var/zotero/empty
-rw-r--r-- 1 www-data www-data 0 2010-07-23 16:01 /var/zotero/empty

I need to use a sync software, that stores the date and time of the last
sync in an empty file called "lastsync". My problem ist that the
timestamp of this file is not updated properly.

THX again!

Thorsten


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to