How to connect via API?
Solved
General and Desktop
-
-
What version of Qt are you using ?
-
-
Then try again with the latest version of the 1.0 series.
-
Still the same error or another one ?
-
Did you check whether you can connect to another https resource and if it triggers the same error ?
-
@Mikeeeeee you may try a JSON testing site with secure connections, like https://jsonplaceholder.typicode.com
i.e. https://jsonplaceholder.typicode.com/todos/1 will return:
{ "userId": 1, "id": 1, "title": "delectus aut autem", "completed": false }
-
@Pablo-J.-Rogina said in How to connect via API?:
Tried to send to this address and got an old error.
-
And if you sent"http://json placeholder.typecode.com/todos/1" it works. Why https doesn't work?
-
Just to be sure add this to your code:
qDebug() << QSslSocket::supportsSsl(); qDebug() << QSslSocket::sslLibraryBuildVersionString(); qDebug() << QSslSocket::sslLibraryVersionString();