16
Programmers corner / Re: Only one thing that wasn't released about HFS...
« on: October 25, 2022, 07:23:04 PM »
the procedure to reproduce in php seems to be the following
php receives a request from hfs in this format
if hfs is indeed accessible from the web with this url then it sends as response to php the text 'HFS OK'
from then on the php returns a text by the first channel with '1' as the correct functioning response, otherwise an empty string in the event of an error
*************************************
technically it is possible to simulate this exchange using two hfs sessions and forcing a redirection from hfstest.rejetto.com to a local ip in the windows 'hosts' file by adding this line
127.0.0.1 hfstest.rejetto.com
the server must appear as the php must be launched to listen to it on port 80 and active on 'Any Address'
in the root put as diff template
[]
1
launch another session of hfs listening on any port other than 80, then launch the "self test", the response obtained will be positively successful
you can also perform this experiment by replacing the localhost address with the local ip (192.168.1.xxx)
If we also use the 'self test' of the hfs of port 80 as a self test, the response will also be positive with 127.0.0.1 , but no response with 192.168.1.xxx
php receives a request from hfs in this format
Code: [Select]
http://hfstest.rejetto.com/?port={external_port}&host={external_ip|dns_name}&natted={no|yes}
this should generate a new request using a second channel from php to hfs on the url of the formCode: [Select]
http://%host%:%port%/test
if hfs is indeed accessible from the web with this url then it sends as response to php the text 'HFS OK'
from then on the php returns a text by the first channel with '1' as the correct functioning response, otherwise an empty string in the event of an error
*************************************
technically it is possible to simulate this exchange using two hfs sessions and forcing a redirection from hfstest.rejetto.com to a local ip in the windows 'hosts' file by adding this line
127.0.0.1 hfstest.rejetto.com
the server must appear as the php must be launched to listen to it on port 80 and active on 'Any Address'
in the root put as diff template
[]
1
launch another session of hfs listening on any port other than 80, then launch the "self test", the response obtained will be positively successful
you can also perform this experiment by replacing the localhost address with the local ip (192.168.1.xxx)
If we also use the 'self test' of the hfs of port 80 as a self test, the response will also be positive with 127.0.0.1 , but no response with 192.168.1.xxx