Search code examples
encodingmulepassword-protection

How to use special characters in password for mule endpoint


Im trying to access an outbound-endpoint sending login password for it, but the password have a # character, so ive tryed encode it to %23 and even so im getting an error message... How can i can send it?

My code:

<http:outbound-endpoint host="localhost" path="path/path" port="8080" user="username" password="paswd%23" exchange-pattern="request-response" doc:name="HTTP">
    </http:outbound-endpoint>

And the error is:

Invalid uri 'http://username:paswd#@localhost:8080/path/path

Mule version 3.4


Solution

  • Double encode the password:

    password="paswd%2523"