rejetto forum
Software => HFS ~ HTTP File Server => Bug reports => Topic started by: Fasdalf on July 20, 2010, 07:29:40 AM
-
WGET sens HEAD requsets to check last-modified date. HFS sends 400 error back with last-modified header, but WGET see 4xx error and skips file when --timestamping file used. Without flag modified files are skiped at all.
How cold i male my local folder up to date without clearing it?
Russian answers are welcome: http://www.rejetto.com/forum/index.php/topic,8813.0.html
-
hfs can only reply on http request, possible it is there the source of error, i notice that WGET use http and ftp protocol, configure it to use only http requests, and report us ;)
-
This is a command i run. Names and apssword are changed.
wget --recursive --timestamping --accept=nup,ver --level=1 --continue --tries=9 --retry-connrefused --no-parent --no-directories --directory-prefix=/home/user/folder --user=user --password=password http://example.com:9091/my_folder/
Is'n t "http://example.com:9091/my_folder/"in command's end clearly declare HTTP?
-
If this could help, i'm trying to keep LAMP web host's folder in sync with HFS folder, where some files update once or twice a day, but some once a week or more. I woldn't load bandwidth with downloading same files over and over again. So i tryed to use timestamping in wget and failed.
Shouldn't HFS give status 200 on HEAD requests?
-
welcome!
HFS returns error 400 on few occasions
- when the username is illegal
- when the URI doesn't start by /
- when bytes range is out of bounds
you should post the full http header if you want more help.
if you don't know how to do, this is a good way if your server has low traffic: right click on the log > log what > request dump
it may be necessary to also enable "replies" and disable "only serverd requests".