It used to be ok before 5 years ago.
Please take a look.
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamklon111 wrote:.Raspberry system OSMC installed PHP Version 7.0.33-0+deb9u6
It is possible to read and write text via ESP
klon111 wrote:.I cannot see from http://localhost/
klon111 wrote:.And how to read the.txt file to esp8266
I browse through the library and cannot find
TL;DR: 80 % of Chrome page-loads already travel over HTTPS [Google, 2020]. “Switch to port 443 and WiFiClientSecure” [Elektroda, khoam, post #18620563] Update your ESP8266 sketch with ESP8266HTTPClient, add the server fingerprint, and include the port in http.begin() to restore txt-file transfers.
Why it matters: Modern servers refuse plain-text HTTP, so your microcontroller must speak TLS to connect.
• Default secure port: 443; HTTP 80 often blocked or auto-redirected [Elektroda, khoam, post #18620508] • ESP8266HTTPClient increases RAM use by ≈3 kB; keep >10 kB free for TLS [Espressif Docs, 2021] • Let’s Encrypt certificates expire every 90 days; update fingerprint or reconnect fails [Let’s Encrypt, 2022] • PHP 7.0 on Raspberry-OSMC handles ESP8266 GET/POST without addons [Elektroda, khoam, post #18624787] • 1.5 % of TLS handshakes fail due to cert errors [Mozilla Telemetry, 2021]
/piwo.php?temp1=25.3, call http.begin(host, 80, url), send http.GET() or http.POST() with zero-length body. The sample in post #18629325 shows full code [Elektroda, Slawek K., post #18629325]/odczyt.txt, then use http.getString() to load the file into a String [Elektroda, klon111, post #18630400]