rejetto forum

Software => HFS ~ HTTP File Server => Bug reports => Topic started by: Fasdalf on July 20, 2010, 07:29:40 AM

Title: HTTP 400 error on HEAD request
Post 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
Title: Re: HTTP 400 error on HEAD request
Post by: Mars on July 20, 2010, 09:12:54 AM
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 ;)
Title: Re: HTTP 400 error on HEAD request
Post by: Fasdalf on July 20, 2010, 09:56:29 AM
This is a command i run. Names and apssword are changed.
Code: [Select]
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?
Title: Re: HTTP 400 error on HEAD request
Post by: Fasdalf on July 20, 2010, 12:58:32 PM
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?
Title: Re: HTTP 400 error on HEAD request
Post by: rejetto on July 26, 2010, 02:57:23 PM
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".