I am trying to teach my IOT device how to monitor my Algolia index. To start, I am trying to get the response from status.algolia.com/1/status.
Here is the request I am making:
WiFiClientSecure client; client.print(String("GET ") + "/1/status" + " HTTP/1.1\r\n" + "Host: status.algolia.com\r\n" + "User-Agent: ESP8266\r\n" + "Accept: application/json\r\n" + "Accept-Language: en-us,en\r\n" + "X-Algolia-API-Key: " + amapikey + "\r\n" + "X-Algolia-Application-Id: " + amapikey + "\r\n" + "Connection: close\r\n\r\n");
'WiFiClientSecure' is defined in this c++ lib:
'amapikey' is my Algolia Monitoring API Key and
'amappkey' is my Algolia Application ID.
The SSL Fingerprint for status.algolia.com I got from the SSL Cert is:
55 20 40 3d bb d0 61 e4 4e c7 d7 f9 f8 20 aa 28 84 c0 59 a0
But for some reason, the validation fails.
Is there an obvious error here that I am not seeing?
Thanks for any and all help.