🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂
🚀 RoketNot Giriş Yap
🚀 RoketNot Kaydol
Ramazan HABER /
FLUTTER / HandshakeException Handshake error in client (OS Error CERTIFICATE_VERIFY_FAILED unable to get local issuer certificate(handshake.cc 359)) hatası
1-) FLUTTER - HandshakeException Handshake error in client (OS Error CERTIFICATE_VERIFY_FAILED unable to get local issuer certificate(handshake.cc 359)) hatası
1. ÇÖZÜM
1- certifika yükleme
void main() { HttpOverrides.global = new MyHttpOverrides(); runApp(const MyApp()); }
void fetchVeriler() async { HttpClient httpClient = new HttpClient() ..badCertificateCallback = ((X509Certificate cert, String host, int port) => true); IOClient ioClient = new IOClient(httpClient);
final response = await ioClient.get(Uri.parse('http://roketnot.com/verilerigetir?sifre=123'));
if (response.statusCode == 200) { print('Veriler:'); print(response.body); } else { print('İstekte bir hata oluştu. Durum kodu: ${response.statusCode}'); }