<p>Is it possible in .NET to list files on a remote location like an URL? Much in the same way the System.IO classes work. All I need is the URLs to images that are on a remote server.</p>

[{'answer_id': 13657, 'author': 'lubos hasko', 'author_id': 275, 'author_profile': 'https://Stackoverflow.com/users/275', 'pm_score': 3, 'selected': True, 'text': '<p><strong>Short answer:</strong> No, unless you have more control over that web-server</p>\n\n<p><strong>Long answer:</strong> Here are possible solutions...</p>\n\n<ol>\n<li><p>You will need server-side script that will do it locally and output this list in your preferred format.</p></li>\n<li><p>Most of the web-servers implement default file-browsing pages, so you could theoretically parse those but this solution will be very fragile and not very portable even between different versions of the same web-server.</p></li>\n<li><p>If you have FTP access...</p></li>\n</ol>\n'}, {'answer_id': 13757, 'author': 'Sören Kuklau', 'author_id': 1600, 'author_profile': 'https://Stackoverflow.com/users/1600', 'pm_score': 1, 'selected': False, 'text': '<blockquote>\n  <p>Is it possible in .NET to list files on a remote location like an URL?</p>\n</blockquote>\n\n<p>You should specify which protocol we\'re talking about.</p>\n\n<p>For HTTP, lubos hasko provided the answer: no. HTTP has no concept of files; only of resources. If you have control over the web server, you can ask it to provide a directory listing, or, better yet, you can write code that lists the directory server-side for you. Without such control, you have to <em>rely</em> on the server to provide a listing, which 1) may be disabled for security reasons, 2) is non-standardized in its format, 3) will be, like lubos said, fragile to parse (<a href="http://en.wikipedia.org/wiki/Web_scraping" rel="nofollow noreferrer">"scrape"</a>).</p>\n\n<p>If you mean / if the server provides a protocol intended for file transfer, such as FTP, SMB/CIFS, etc., it\'ll be a lot easier. For example, for FTP, you\'ll want to look into <a href="http://msdn.microsoft.com/en-us/library/system.net.webrequestmethods.ftp.listdirectorydetails.aspx" rel="nofollow noreferrer">WebRequestMethods.Ftp.ListDirectoryDetails</a>.</p>\n'}]
['https://Stackoverflow.com/questions/13655', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']