rejetto forum

HTTP 400 error on HEAD request

0 Members and 1 Guest are viewing this topic.

Offline Fasdalf

  • Occasional poster
  • *
    • Posts: 4
    • View Profile
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


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
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 ;)


Offline Fasdalf

  • Occasional poster
  • *
    • Posts: 4
    • View Profile
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?


Offline Fasdalf

  • Occasional poster
  • *
    • Posts: 4
    • View Profile
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?
« Last Edit: July 21, 2010, 05:15:00 AM by Fasdalf »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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".