I use below codes to get files from a FTP site. It works in my computer, but it only return HTML codes when I run it on another computer (I can see that the HTML are codes o
This is the result of using FtpWebRequest through an HTTP Proxy. The file listing gets pretty printed with HTML tags which have hyperlinks to the individual files in the listing.
If you can't bypass the proxy, in our case it was possible to scrape the section with the file contents out of an enclosing element, load it into an XmlDocument, and pull the file list out through .SelectNodes("//A/text()")