How to make a plain text http (not https) request from Flutter How to make a plain text http (not https) request from Flutter dart dart

How to make a plain text http (not https) request from Flutter


create a new httpclient and disable certificate checking

HttpClient httpClient = new HttpClient()..badCertificateCallback =    ((X509Certificate cert, String host, int port) => true);IOClient ioClient = new IOClient(httpClient);ioClient.get(url);