[Development] Proposal for allowing handling of HTTP redirects in QNAM

Richard Moore rich at kde.org
Thu Dec 26 15:42:21 CET 2013


On 26 December 2013 13:11, Thiago Macieira <thiago.macieira at intel.com> wrote:
> On quinta-feira, 26 de dezembro de 2013 18:15:56, Mandeep Sandhu wrote:
>> We could emit download progress for each intermediate request, but
>> won't that look strange to a user as the bytes received & _possibly_
>> bytes total values will keep changing across these requests? Or is
>> that acceptable given the user knows that we're making multiple
>> requests on its behalf?
>
> There is no downloadProgress for any intermediate requests. We know that we're
> redirecting before we get the first byte of data out of the server. At that
> point, we can abandon the QHttpNetworkReply and move on to the next already.

Hmm true, though we'll have to make sure we read any body provided
rather than just abandon the request or we can't reuse the connection.

Rich.



More information about the Development mailing list