I have the code:
FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(url);
request.Method = WebRequestMethods.Ftp.DownloadFile;
request.UseBinary = true; // Binary mode when downloading
request.Credentials = new NetworkCredential(user, password);
FtpWebResponse response = (FtpWebResponse)request.GetResponse();
I always get the error: "The requested URI is invalid for this FTP command".
The problem is the url contains a "#". Since I can't stop people from creating that type of file, is there a way I can escape special characters and still process the file?