[Qt-interest] HTTPS POST request
Nikolay Mikheev
el.vooft at gmail.com
Thu Jul 9 16:36:50 CEST 2009
Good day! :)
I have to make data exchanging between remote server and my app. So,
my choice was https connection and POST method for transferring. But i
have a lot of troubles with this.
In Assistant is written, that it is better to use
QNetworkAccessManager instead of QHttp.
First of all, it seems, that just to send data with POST method is not
so easy :)
I found already written very useful class FormPost
http://www.tuckdesign.com/sources/Qt which with some changes may be
used in my app.
Secondly, i have self-signed cert and so QNetworkAccessManager emits
signal sslErrors which have very fuzzy description. I connected it to
slot where reply->ignoreSslErrors() calls, but there's no reply still.
I'm not sure i make it correct. Here's my code:
http://paste.org.ru/?k81vhf http://paste.org.ru/?7s1gfo
How it is possible to solve my troubles or is there any example with
using QNetworkAccessManager and https for data transferring?
--
Best regards, Nikolay Mikheev
More information about the Qt-interest-old
mailing list