c# - trying to FTP a file with a special character -



c# - trying to FTP a file with a special character -

i have 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 error: "the requested uri invalid ftp command".

the problem url contains "#". since can't stop people creating type of file, there way can escape special characters , still process file?

do string replace "#" ->"%23" url encodings shouldn't contain hash because:

some characters nowadays possibility of beingness misunderstood within urls various reasons. these characters should encoded.

c# ftp

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -