     String authReq = http.header("WWW-Authenticate");
     Serial.println(authReq);
 
-    String authorization = getDigestAuth(authReq, String(username), String(password), String(uri), 1);
+    String authorization = getDigestAuth(authReq, String(username), String(password), "GET", String(uri), 1);
 
     http.end();
     http.begin(client, String(server) + String(uri));

  return s;
}

String getDigestAuth(String& authReq, const String& username, const String& password, const String& uri, unsigned int counter) {
  // extracting required parameters for RFC 2069 simpler Digest
  String realm = exractParam(authReq, "realm=\"", '"');
  String nonce = exractParam(authReq, "nonce=\"", '"');

}

void setup() {
  randomSeed(RANDOM_REG32);
  Serial.begin(115200);

  WiFi.mode(WIFI_STA);
