Unsolved Download data only working with some sites
-
What OS are you on ?
-
@SGaist Windows 7 Pro
-
Then where did you get OpenSSL from ?
-
@SGaist I don't know. As I said, I just wrote the program as indicated on the link (first message), run it and got this list of messages but I don't understand the relationship with SSL.
-
If you don't know then its likely that you don't have it at all.
If your downloads at some point get redirected to an encrypted endpoint then you need to have OpenSSL in order to establish the connection.
-
@SGaist Well, I'm sorry but I'm not very used to network subtleties, but as my browser (chrome) can open these sites, I suppose that the protocol SSL is available on my computers. Is this wrong?
-
Yes it is wrong. Chrome comes packed with everything it needs like your application should be when using encryption.
-
@SGaist OK, I made some progress. I found libraries 'libeay32.dll' and 'ssleay32.dll' in my Qt distribution. I copied them in the working dir of my project and the messages qt.network.ssl... etc disapeared. But now I'm getting an error "SSL handshake failed". Any suggestions ? Thanks a lot for your help.
-
You should check the peer certificate: see here.
-
@jcga said in Download data only working with some sites:
Any suggestions ?
I already suggested "connect to the QNetworkAccessManager::sslErrors(QNetworkReply *reply, const QList<QSslError> &errors) signal to check if something happens during TLS handshake."
-
@Pablo-J.-Rogina
Thanks for the suggestion. I have done the connection, but the program never goes into the corresponding slot, so suppose that the signal sslErrors() is never emitted.