I am using a browser and WireShark to test an aRest demo on an Arduino Nano ESP32. I noticed when the browser requests /favicon.ico, the response is the same content as for "/" : it shows the variables and status. The behavior is easy to reproduce with curl.
The request can be any of:
$ curl -s 192.168.50.56/
$ curl -s 192.168.50.56/favicon.ico
$ curl -s 192.168.50.56/nonexistent
$ curl -s 192.168.50.56/nonexistent/path/to/resource
The response will be of the form:
{"variables": {"temperature": 24, "humidity": 40}, "id": "-blah-", "name": "blah_blah", "hardware": "esp32", "connected": true}
I am using a browser and WireShark to test an aRest demo on an Arduino Nano ESP32. I noticed when the browser requests /favicon.ico, the response is the same content as for "/" : it shows the variables and status. The behavior is easy to reproduce with curl.
The request can be any of:
$ curl -s 192.168.50.56/
$ curl -s 192.168.50.56/favicon.ico
$ curl -s 192.168.50.56/nonexistent
$ curl -s 192.168.50.56/nonexistent/path/to/resource
The response will be of the form:
{"variables": {"temperature": 24, "humidity": 40}, "id": "-blah-", "name": "blah_blah", "hardware": "esp32", "connected": true}