[Interest] QNetworkAccessManager - how to enforce authentication?
rich at kde.org
Thu Aug 9 23:08:49 CEST 2012
On 9 August 2012 03:34, Alex Malyushytskyy <alexmalvtk at gmail.com> wrote:
> user will not be requested for authentication second time,
> instead QNetworkReply signal finished() is emitted with error
> "Connection closed".
Fire up wireshark or similar and check the response code your server
provides when it gets these requests. In both cases it should send a
401 unauthorized response with a WWW-Authenticate header specifying
the authentication realm. If it does not then your server is broken.
If it does send those even when the second request from QNAM with the
invalid Authorization header (the header for basic authentication) is
received then it's likely to be QNAM that is broken.
More information about the Interest