问题
When I use my QT application to download this page: https://service.oneaccount.com/onlineV2_B/OSV2?event=login&pt=3 with QNetworkAccessManager->get(url), I got a network error (QNetworkReply::NetworkError) in the reply object. The error string is SSL handshake failed. However, the sslErrors signal is not fired so I don't even get the chance to ignore this error. I got the same problem on Mac and Windows version.
If I do the same thing with QT 4.74. It works fine.
回答1:
Using QSslSocket::setProtocol(QSsl:SslV3)
fixes the problem.
来源:https://stackoverflow.com/questions/13408829/qtnetwork-ssl-handshake-error-on-https-service-oneaccount-com-onlinev2-b-osv2