Unsolved I want to pull data from url
-
QString control = "http://website.com/control.php?fffun=ddd"; QNetworkAccessManager LManager2; QNetworkReply *reply2 = LManager2.get(QNetworkRequest(QUrl(control))); QEventLoop event2; connect(reply2,SIGNAL(finished()),&event2,SLOT(quit())); event2.exec(); QString controlwrite = reply2->readAll(); ui->textEdit->setText(controlwrite);
my default browser chrome //php is login sessions controled. if login write 1 else 0
https://i.hizliresim.com/lqpoWk.png.
but my application
https://i.hizliresim.com/lqpoOk.png
pls help me. -
@WikiPiti3131 What is the problem/question? I can't access your links.
Also you should connect https://doc.qt.io/qt-5/qnetworkreply.html#error-1, https://doc.qt.io/qt-5/qnetworkreply.html#sslErrors and https://doc.qt.io/qt-5/qnetworkaccessmanager.html#authenticationRequired to slots and see whether you get any errors or authentication is required.