The ethernet probe curl --silent --head http://www.openhab.org/docs |& grep -qs 'HTTP/1.1 200 OK' seems to fail since the docs now upgrades to TLS (Redirects to https://www.openhab.org/docs/).
I have tried to solve it in this branch (forked) where the url is updated and is now adjustable by config, in addition I updated the grep condition to be agnostic to HTTP/1.1 or HTTP/2.
I also introduced the option for allow redirects and disabled it by default, but it might be redundant.
Issue information:
The ethernet probe
curl --silent --head http://www.openhab.org/docs |& grep -qs 'HTTP/1.1 200 OK'
seems to fail since the docs now upgrades to TLS (Redirects to https://www.openhab.org/docs/).I have tried to solve it in this branch (forked) where the url is updated and is now adjustable by config, in addition I updated the grep condition to be agnostic to
HTTP/1.1
orHTTP/2
. I also introduced the option for allow redirects and disabled it by default, but it might be redundant.Debug information:
When probing the ethernet the logs outputs:
A manual curl that allows redirect shows a upgrade to TLS:
A probe directly to
https://www.openhab.org/docs/
shows (noticeHTTP/2
notHTTP/1.1
)System information:
I used Raspberry Pi Imager with openHABian 32 bit v1.7.5 on a RPi3B+