[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-community
Subject: Re: [kde-community] Usage of QNetworkAccessManager
From: Richard Moore <richmoore44 () gmail ! com>
Date: 2016-07-17 20:33:13
Message-ID: CAMp7mVu9hQcBSF9nRHUf-Lkqh9-Tf6xsyo5y2=8ySzDfFvGCbw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On 14 July 2016 at 17:38, Thiago Macieira <thiago@kde.org> wrote:
> On quinta-feira, 14 de julho de 2016 18:33:37 PDT Ben Cooksley wrote:
>
> > Unfortunately, from it's first iteration in Qt 4 QNetworkAccessManager
> > w
> e
> as 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.
>
This is incorrect. We can certainly change it in qt6. In fact it's an open
discussion if we can change it before - we need evidence that the change
will not break apps that handle redirects themselves. If anyone has time to
test this then please let me know the results.
> >
> > 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.
>
>
Yes, the code in the example dfaure has linked to does it the hard way.
Cheers
Rich.
[Attachment #5 (text/html)]
<div dir="ltr"><div class="gmail_default" \
style="font-family:verdana,sans-serif"><br></div><div class="gmail_extra"><br><div \
class="gmail_quote">On 14 July 2016 at 17:38, Thiago Macieira <span dir="ltr"><<a \
href="mailto:thiago@kde.org" target="_blank">thiago@kde.org</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span \
class="">On quinta-feira, 14 de julho de 2016 18:33:37 PDT Ben Cooksley \
wrote:<br><br> > Unfortunately, from it's first iteration in Qt 4 \
QNetworkAccessManager<br> > w<div class="gmail_default" \
style="font-family:verdana,sans-serif;display:inline">e </div>as shipped with a \
severe and fundamental defect in that it does not<br> > follow HTTP redirects by \
default. Due to Qt behavioural and other<br> > compatibility promises they can \
never change this behaviour, not even<br> > in Qt 6.<br>
</span></blockquote><div><br></div><div><div class="gmail_default" \
style="font-family:verdana,sans-serif">This is incorrect. We can certainly change \
it in qt6. In fact it's an open discussion if we can change it before - we need \
evidence that the change will not break apps that handle redirects themselves. If \
anyone has time to test this then please let me know the \
results.</div></div><div><br></div><div class="gmail_default" \
style="font-family:verdana,sans-serif"></div><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span \
class="">><br> > Please therefore ensure your application handles redirects<br>
> appropriately (the form of the code will depend on the version of Qt<br>
> in use) if you decide to use QNAM.<br>
<br>
</span>You do that by setting the attribute FollowRedirectsAttribute in your<br>
QNetworkRequests.<br>
<span class="HOEnZb"><font \
color="#888888"><br></font></span></blockquote><div><br></div><div><div \
class="gmail_default" style="font-family:verdana,sans-serif"></div><div \
class="gmail_default" style="font-family:verdana,sans-serif">Yes, the code in the \
example dfaure has linked to does it the hard way.</div><div class="gmail_default" \
style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" \
style="font-family:verdana,sans-serif">Cheers</div><div class="gmail_default" \
style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" \
style="font-family:verdana,sans-serif">Rich.</div><div class="gmail_default" \
style="font-family:verdana,sans-serif"><br></div><br></div></div></div></div>
[Attachment #6 (text/plain)]
_______________________________________________
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