Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. I want to pull data from url
Forum Update on Monday, May 27th 2025

I want to pull data from url

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 306 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    WikiPiti3131
    wrote on last edited by WikiPiti3131
    #1
    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.
    alt text
    but my application
    https://i.hizliresim.com/lqpoOk.png
    alt text
    pls help me.

    jsulmJ 1 Reply Last reply
    0
    • W WikiPiti3131
      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.
      alt text
      but my application
      https://i.hizliresim.com/lqpoOk.png
      alt text
      pls help me.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved