At 16:18 +0200 7/23/10, Thorsten Steinbrenner wrote, and I snipped: >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: > >root@abc:/etc/apache2# ls -l /var/zotero/test >-rw-r--r-- 1 www-data www-data 4 2010-07-23 15:54 test >root@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: > >root@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 >root@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 It's possible that curl is at least part of the problem. A couple of suggestions: What if the server file is not empty when the empty file is uploaded? Or was it that way? Try curl with the --verbose option set. Try curl using ftp: curl --verbose -T empty -u zotero:secret ftp://abc.de/var/zotero/empty Try using scp if it's supported and you want to spend time setting up required $HOME/.ssh files. With ssh you could actually "touch" the empty file. It's just possible that some software is being more helpful than you like. The curl mailing list is quite active and helpful. I don't know if curl uses your Apache server to accomplish an HTTP upload. List-Archive: <http://cool.haxx.se/pipermail/curl-users> List-Post: <mailto:curl-users@xxxxxxxxxxxx> List-Help: <mailto:curl-users-request@xxxxxxxxxxxx?subject=help> List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users>, <mailto:curl-users-request@xxxxxxxxxxxx?subject=subscribe> -- --> In Christianity, man can have only one wife. This is known as monotony. <-- --------------------------------------------------------------------- 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-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx