Closed
Description
Board
ESP32 DevKitv1
Device Description
Nothing attached
Hardware Configuration
Defauult config
Version
other
IDE Name
1.8.19
Operating System
Windows10
Flash frequency
80MHz
PSRAM enabled
no
Upload speed
921600
Description
For the current (https://github.com/espressif/arduino-esp32 as at 16Jan23) WiFiClientSecure client, if you do a client.println("");” this breaks the WiFiClientSecure client: although the line eventually returns, the “WiFiClientSecure” buffer gets corrupted and the secure connection doesn’t work.
Note that the old github May2021 had a different “WiFiClientSecure” which was not broken by “client.println("");”
NB. if you consider this issue not worth fixing, please feel free to close this issue!
Sketch
The easiest way to test this is using the ESP32-Example-WiFiClientSecure/ WiFiClientSecure” sketch, and modifying one line and adding 1 line (as shown below):
// Make a HTTP request:
client.print("GET https://www.howsmyssl.com/a/check HTTP/1.0");
client.println(""); // breaks the "WiFiClientSecure client" on current github ESP32 versions
// NB. client.println() and client.print("\r\n") both WORK,
// and client.println(" ") half-works here, but client.println("") breaks the "WiFiClientSecure client"
### Debug Message
```plain
None
Other Steps to Reproduce
n/a
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.