Qt Forum

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

    Call for Presentations - Qt World Summit

    FTP over HTTP Proxy not working

    General and Desktop
    2
    3
    1721
    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.
    • A
      adnan last edited by

      As per Qt documentation 4.8
      @QFtp does not support FTP-over-HTTP proxy servers. Use QNetworkAccessManager for this.@

      But it doesn't work with QNetworkAccessManager either. I am behind a Squid HTTP proxy server and ftp downloads work fine with all the browsers, and UGET also, but it fails with QNetworkAccessManager, with the error: no suitable proxy found

      @QUrl url("ftp://rpmfind.net/linux/epel/testing/6/ppc64/wicd-1.7.0-4.el6.ppc64.rpm");
      QNetworkReply* reply;
      request.setUrl(url);
      proxy.setHostName(host);
      proxy.setPort(port_num);
      proxy.setType(QNetworkProxy::HttpProxy);
      manager.setProxy(proxy);
      reply=manager.get(request);
      connect(&manager, SIGNAL(finished(QNetworkReply*)),this,
      SLOT(finished(QNetworkReply*)));@

      1 Reply Last reply Reply Quote 0
      • T
        toptan last edited by

        Try setting proxy type to DefaultProxy, or FtpCachingProxy.

        1 Reply Last reply Reply Quote 0
        • A
          adnan last edited by

          Already did that, it didn't work

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