rejetto forum

How I can force HFS to send nonexisting file

0 Members and 1 Guest are viewing this topic.

Offline Mike Korneev

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
I want to somehow force HFS to act in such manner:

[request (or download?, or some another event?)]
if HFS can send requested file
   dodefault (send it)
else
  send the content of, for example, /NotFound.txt (or d:\HFS\NotFound.txt) as if requested file exists in
  HFS's VFS and HFS perform a routin operation so that requestor will be
  sure that he got a requested file
endif

How I can do this?



Offline Mike Korneev

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
http://rejetto.com/forum/index.php?topic=12116.msg1062899#msg1062899

[not found]
{.add header|Location:/NotFound.txt.}

In such a case requestor will see that there was redirection...
But I want requestor will sure that he got an exactly requested file.