title: How is FTP supposed to work with QNetworkAccessManager?
body: <p>So <code>QFtp</code> was removed because it had bad design they say. Whatever. </p>
  
  <blockquote>
    <p>However, for new applications, it is recommended to use
    QNetworkAccessManager and QNetworkReply, as those classes possess a
    simpler, yet more powerful API. (from <strong><a href="http://doc.qt.io/qt-4.8/qftp.html#details" rel="nofollow">docs</a></strong>)</p>
  </blockquote>
  
  <p>I looked up <code>QNetworkAccessManager</code> and it's just confusing. It's not socket and doesn't even seem to provide raw socket methods. But it's also not FTP. It provides HTTP related functions like <code>cookieJar</code>, <code>post</code>, <code>get</code>... Can someone remind me how does FTP respond to HTTP data?</p>
  
  <p>So this question consists of two parts:</p>
  
  <ol>
  <li>What are we basically expected to do to do a simple connection to FTP server and one basic operation, like dir listing.</li>
  <li>How does it work on low-level, and why.</li>
  </ol>
  
  <p>I have of course found some code and I'm now trying to get it to work, but the real problem is that it makes no sense to me.</p>