Start a new topic
Solved

URI scheme does not work when there is an (encoded) & character in the password

Hello,


How do I use the URI for an adhoc connection, when the password has the '&' character in it?  Encoding special characters in the password works for everything except '&'


Example URI to reproduce problem:

open 'rtsx://rdp://localhost:3303?using=adhoc&username=Administrator&password=%26'

 

This results in an adhoc connection with the password empty instead of a single '&'.


Does anyone have an insight into this?



My env:

Royal TSX (macOS Monterey)

Version 6.0.0.3 (Beta)



1 Comment

Hi Ash,


please use '%2526' to escape the '&' character (without the '')


In my example I used "pass&word" as the password and was able to connect via:

open 'rtsx://rdp://192.168.0.199:3389?using=adhoc&username=testuser&password=pass%2526word&action=connect'



However, we recommend encoding the URL after the rtsx:// block, so the correct string in my example would be:

open 'rtsx://rdp%3A//192.168.0.199%3A3389?using%3Dadhoc%26username%3Dtestuser%26password%3Dpass%2526word%26action%3Dconnect'



I hope this helps!


Best regards,

Christoph

Login or Signup to post a comment