Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] File change info on upload to server



> > This looks fine.  The only functionality which may be missing would be a
> > way to automatically know whether a file has changed without having to
> > download the whole file.  But your web server might already have that
> > functionality.  This is something that a good web server should provide
> > without you having to do anything.
> >

Your web server probably responds to HEAD requests.

Your server should respond with all the headers that it would have sent with
the file but without sending the file.  The headers usually contain
information on the file modification date, size and maybe even an "ETag",

If these headers change your file has probably changed.

>  I looked through my web host's support files and couldn't find anything on
> this, nor could I turn up anything relevant by googling key words. Can
> someone orient me as to what sort of program/application I should be looking
> for?

Anything that can send a HTTP HEAD request should work.
For example,

curl -I http://tlug.jp/index.html


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links