[Development] Using SSL with MiniHttpServer (in tst_qnetworkreply)
Mandeep Sandhu
mandeepsandhu.chd at gmail.com
Tue Dec 2 02:34:44 CET 2014
Hi All,
I'm unable to get the MiniHttpServer in tst_qnetworkreply to work with
SSL enabled.
Here's the code that I'm using:
<snip>
// I've left the HTTP response out for brevity, but its supposed to
return 200 OK
MiniHttpServer server("", true);
QUrl localhost = QUrl("https://localhost/");
localhost.setPort(server.serverPort());
QNetworkReplyPtr reply(manager.get(QNetworkRequest(localhost)));
</snip>
With the above code, I'm always getting an error:
...
slotError QAbstractSocket::RemoteHostClosedError "The remote host
closed the connection"
...
Any idea, why its not working for SSL?
Regards,
-mandeep
More information about the Development
mailing list