[Qt-interest] need some help with QNetworkAccessManager and authenticated http post.
Thiago Macieira
thiago.macieira at trolltech.com
Sun Apr 5 08:38:58 CEST 2009
wim.delvaux at adaptiveplanet.com wrote:
>1. I see the EXEC print ( so the EL->exec() is active)
>2. I see the HTTP POST request being sent (using wireshar)
>3. I see the 401 reply requesting password
>4. the dialog is shown
>
>what I do NOT see is
>
>1. a authentication reply being sent (nothin on wireshare)
>2. the EXEC never finishes (i.e. the finished signal never fires)
>
>What am i doing wrong ?
Nothing.
POST and PUT with authentication doesn't work because the code has already
discarded the data to be POST'ed. This is a bug and we're fixing it for
4.6.0 (since it requires a fairly big change to the internals and new
attributes).
In the meantime, for 4.5.x, send a GET to the same server that will cause
the authentication to happen. Authentication credentials are stored and
will be reused.
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Product Manager - Nokia, Qt Software
Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090405/9a816cf9/attachment.bin
More information about the Qt-interest-old
mailing list