rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mike Korneev

Pages: 1
1
Programmers corner / Re: How I can force HFS to send nonexisting file
« 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.

2
Programmers corner / 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?

3
Ok.
Thank you very much!

4
Just some file on my computer. For example "x:/xxx/xxxx/xxx.xxx"

5
or when I put a url that does not match any physical file like "xxx.xxx.xxx.xxx./max.txt"

Yes, this is the case. When someone request from HFS file which doesn't exist I want to send some existing file intead of requested file which is not exists.

6
When someone requests from HFS file which HFS can't find in his VFS, HFS send "Not served: 404 - Not found" error.
And I want to force HFS to send some file instead of 404 error.

What is the simplest way to do this?

Sorry for my bad english :-)

7
Всем привет!

Мне бы хотелось, в случае, когда запрашиваемый файл не найден и HFS отвечает "Not served: 404 - Not found", посылать некий файл.

Как это, в случай с HFS 2.3k, проще всего сделать?

Pages: 1