Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Proxy client accesing to web

    Qt WebKit
    2
    2
    1732
    Loading More Posts
    • 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.
    • L
      luisaguirre4984 last edited by

      Hello, I am tring to connect at the web through at proxy, and I could not, the code is here:

      QNetworkProxy pr;
      QNetworkAccessManager acc;
      pr.setUser("laguirre@ivisa.com.ar");
      pr.setPassword("luis");
      pr.setHostName("baisa.ivisa.com.ar");
      pr.setPort(8080);
      pr.setType(QNetworkProxy::ProxyType::HttpProxy);
      QNetworkAccessManager acc;
      acc.setProxy(pr);
      QnetworkReply reply=acc.get(QNetworkRequest("http://googel.com.ar));
      connect(reply, SIGNAL(finished()),this, SLOT(httpFinished()));
      connect(reply, SIGNAL(readyRead()),this, SLOT(httpReadyRead()));
      connect(reply,SIGNAL(downloadProgress(qint64,qint64)),
      this,SLOT(updateDataReadProgress(qint64,qint64)));

      the problem is that the program leave asleep when call yo acc.get, what am I doing bad?
      Help please.
      regards and thanks, Luis.

      1 Reply Last reply Reply Quote 0
      • E
        Eddy last edited by

        Please don't double post. You already asked "this":https://developer.qt.nokia.com/forums/viewthread/11472/.
        Thread closed

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply Reply Quote 0
        • First post
          Last post