[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-community
Subject: Re: [kde-community] Usage of QNetworkAccessManager
From: Thiago Macieira <thiago () kde ! org>
Date: 2016-07-14 16:38:23
Message-ID: 34226436.xkyNdkfQnK () tjmaciei-mobl1
[Download RAW message or body]
On quinta-feira, 14 de julho de 2016 18:33:37 PDT Ben Cooksley wrote:
> Hi all,
>
> Just my regular reminder regarding usage of QNetworkAccessManager in
> your applications and libraries, especially when it comes to
> interacting with kde.org infrastructure.
>
> Unfortunately, from it's first iteration in Qt 4 QNetworkAccessManager
> was shipped with a severe and fundamental defect in that it does not
> follow HTTP redirects by default. Due to Qt behavioural and other
> compatibility promises they can never change this behaviour, not even
> in Qt 6.
>
> Please therefore ensure your application handles redirects
> appropriately (the form of the code will depend on the version of Qt
> in use) if you decide to use QNAM.
You do that by setting the attribute FollowRedirectsAttribute in your
QNetworkRequests.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
_______________________________________________
kde-community mailing list
kde-community@kde.org
https://mail.kde.org/mailman/listinfo/kde-community
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic