Author Topic: How I can force HFS to send nonexisting file  (Read 259 times)

0 Members and 1 Guest are viewing this topic.

Offline Mike Korneev

  • Occasional poster
  • *
  • Posts: 7
    • View Profile
How I can force HFS to send nonexisting file
« on: June 20, 2018, 09:32:24 PM »
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 Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1860
    • View Profile
Re: How I can force HFS to send nonexisting file
« Reply #1 on: June 22, 2018, 04:07:31 PM »
http://rejetto.com/forum/index.php?topic=12116.msg1062899#msg1062899

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

Offline Mike Korneev

  • Occasional poster
  • *
  • Posts: 7
    • View Profile
Re: How I can force HFS to send nonexisting file
« Reply #2 on: June 22, 2018, 05:32:58 PM »
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.