How can I use an FTP password that contains special characters like ? and @

+1 vote
asked Feb 21, 2019 by mike-r-7535 (13,830 points)
I need to connect to an FTP endpoint using a password that contains a special character like '?' or '@'.  However my password is getting encoded so it says I have a bad password.

1 Answer

+1 vote

For passwords that contain special characters that would be encoded in a URL string, they need to be wrapped with RAW(). This allows Apache Camel to recognize that this encoded field should not be decoded when using this parameter.

For example, if your actual password is se+re?t&23, you would want to use the following in the password field: RAW(se+re?t&23)

Please see for more details.

answered Feb 21, 2019 by mike-r-7535 (13,830 points)