Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_network_access_qnetworkreply.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4using namespace Qt::StringLiterals;
5
6//! [0]
7QList<QSslCertificate> cert = QSslCertificate::fromPath("server-certificate.pem"_L1);
8QSslError error(QSslError::SelfSignedCertificate, cert.at(0));
10expectedSslErrors.append(error);
11
12QNetworkReply *reply = manager.get(QNetworkRequest(QUrl("https://server.tld/index.html")));
13reply->ignoreSslErrors(expectedSslErrors);
14// here connect signals etc.
15//! [0]
QJSValue error
QNetworkReply * reply
[0]
QList< QSslCertificate > cert
[0]
QList< QSslError > expectedSslErrors