/* SPDX-FileCopyrightText: 2023 Nicolas Fella SPDX-License-Identifier: LGPL-2.0-or-later */ #include #include #include int main(int argc, char **argv) { QApplication app(argc, argv); auto job = KIO::get(QUrl("https://expired.badssl.com/")); QObject::connect(job, &KJob::result, &app, [](KJob *job) { if (!job->error()) { qWarning() << "job succeeded"; } else { qWarning() << "job error" << job->error() << job->errorString(); } }); return app.exec(); }