Qt 6.x
The Qt SDK
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
11
12QNetworkReply *reply = manager.get(QNetworkRequest(QUrl("https://server.tld/index.html")));
14// here connect signals etc.
Definition qlist.h:74
const_reference at(qsizetype i) const noexcept
Definition qlist.h:429
void append(parameter_type t)
Definition qlist.h:441
QNetworkReply * get(const QNetworkRequest &request)
Posts a request to obtain the contents of the target request and returns a new QNetworkReply object o...
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
virtual void ignoreSslErrors()
If this function is called, SSL errors related to network connection will be ignored,...
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
static QList< QSslCertificate > fromPath(const QString &path, QSsl::EncodingFormat format=QSsl::Pem, PatternSyntax syntax=PatternSyntax::FixedString)
The QSslError class provides an SSL error.
Definition qsslerror.h:21
@ SelfSignedCertificate
Definition qsslerror.h:34
\inmodule QtCore
Definition qurl.h:94
DBusConnection const char DBusError * error
QNetworkAccessManager manager
QList< QSslError > expectedSslErrors
QNetworkReply * reply
QList< QSslCertificate > cert
[0]