[Interest] QNetworkAccessManager - how to enforce authentication?

Thiago Macieira thiago.macieira at intel.com
Thu Aug 9 09:55:28 CEST 2012


On quarta-feira, 8 de agosto de 2012 19.34.28, Alex Malyushytskyy wrote:
> I could not find how to enforce authentication of QNetworkAccessManager.
> 
> Problem is that for at least http server I have go work with,
> when user specify a valid user name, but invalid password
> when requested for authentication first time,
> 
> user will not be requested for authentication second time,
> instead  QNetworkReply signal finished() is emitted with error
> "Connection closed".

This sounds like a bug.

I can't say if the bug is in QNAM or in the server, but there's definitely a 
bug somewhere.

> It would be okay, but next time request is started signal
> authenticationRequired will not be emitted.
> request will immediately finish with the same "Connection closed".
> 
> So I am looking for the way to  enforce authentication.

Fix the bug. That should make authentication work.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120809/a4cb8ec2/attachment.sig>


More information about the Interest mailing list