Suppressing SSL errors

后端 未结 1 718
日久生厌
日久生厌 2021-01-12 21:30

I want to be able to read the headers sent back from a webpage in SSL mode. My Qt app however can\'t reach the webpage because it\'s in SSL mode I am gathering? Normal webvi

1条回答
  •  南笙
    南笙 (楼主)
    2021-01-12 21:46

    You need to connect your QNAM objects signal sslErrors(QNetworkReply *, QList) to a slot where you set QNetworkReply::ignoreSslErrors() and that'll allow QNAM to continue running. Qt Docs on it.

    0 讨论(0)
提交回复
热议问题