Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Obtaining a list of files in a folder via HTTP help.



  • Looking at the DownloadManager program example I see that I need a QNetworkAccessManager to manage the download and QNetworkRequest to fill out what I want, but here is where I get confused. Should I put the folder URL as my request? And if so, then how would the QNetworkReply be formated and/or how can I extract the list of files?

    Thank you.



  • Unless the server has been configured to allow directory browsing (very unlikely except on small personal servers), the response will not contain any file list.


Log in to reply