You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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}
The text was updated successfully, but these errors were encountered:
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}
The text was updated successfully, but these errors were encountered: