默认Qt 是不支持https的
安装
将libeay32.dll和ssleay32.dll拷贝到qt的动态链接库即Qt5Core.dll所在bin目录下
设置request的https即可
QSslConfiguration conf = request.sslConfiguration(); conf.setPeerVerifyMode(QSslSocket::VerifyNone); conf.setProtocol(QSsl::TlsV1SslV3); request.setSslConfiguration(conf);