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. FTP over HTTP Proxy not working
Forum Updated to NodeBB v4.3 + New Features

FTP over HTTP Proxy not working

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.9k Views 1 Watching
  • 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 Offline
    A Offline
    adnan
    wrote on 1 Apr 2013, 11:06 last edited by
    #1

    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
    0
    • T Offline
      T Offline
      toptan
      wrote on 1 Apr 2013, 11:33 last edited by
      #2

      Try setting proxy type to DefaultProxy, or FtpCachingProxy.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adnan
        wrote on 1 Apr 2013, 11:36 last edited by
        #3

        Already did that, it didn't work

        1 Reply Last reply
        0

        1/3

        1 Apr 2013, 11:06

        • Login

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