문제

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?

도움이 되었습니까?

해결책

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>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top