0

We are using WSO2 to access different FTP and the username for a specific FTP does contain the '@' which is predefined character for the server config.

Here an example of an Endpoint accessing such a FTP with the username 'MY@USERNAME':

<endpoint xmlns="http://ws.apache.org/ns/synapse" name="FTPEndpoint">
   <address uri="vfs:ftp://MY@USERNAME:PASSWORD@SERVER/Path?vfs.passive=true"/>
</endpoint>

Is there a way to escape the @ for the username?

Community
  • 1
  • 1
Philipp
  • 4,645
  • 3
  • 47
  • 80

1 Answers1

3

It was finally simple by replacing the @ by %40 and it works:

<endpoint xmlns="http://ws.apache.org/ns/synapse" name="FTPEndpoint">
  <address uri="vfs:ftp://MY%40USERNAME:PASSWORD@SERVER/Path?vfs.passive=true"/>
</endpoint>
Philipp
  • 4,645
  • 3
  • 47
  • 80