Closed
Description
Hey, I found this thread when facing the same issue. #5277
When using BearSSL::WifiClientSecure
I get code -1 with https.get
HTTPClient https;
BearSSL::WiFiClientSecure newSecure;
newSecure.setInsecure();
int checkBegin = https.begin(newSecure, "raw.githubusercontent.com", 443, "/coder137/TM4C123G/master/.gitattributes", false);
Serial.println(checkBegin);
int code = https.GET();
String payload = https.getString();
Serial.println(code);
Serial.println(payload);
// !
https.end();
newSecure.stop();
However when using the default axTLS::WifiSecure
This works perfectly
HTTPClient https;
WiFiClientSecure newSecure;
int checkBegin = https.begin(newSecure, "raw.githubusercontent.com", 443, "/coder137/TM4C123G/master/.gitattributes", false);
Serial.println(checkBegin);
int code = https.GET();
String payload = https.getString();
Serial.println(code);
Serial.println(payload);
// !
https.end();
newSecure.stop();
However in the docs it has been written that BearSSL is preferred over axTLS since the latter is deprecated.
Am I doing something wrong or is this a bug?
Metadata
Metadata
Assignees
Labels
No labels