Home > Problems > URL that contains "@" in password
Created 20 Feb 2004
Modified 08 May 2007
URL that contains "@" in password
From the RFC 1738:"...Only alphanumerics [0-9a-zA-Z], the special characters "$-_.+!*'()," [not including the quotes - ed], and reserved characters used for their reserved purposes may be used unencoded within a URL."
You have to hex encode the @ in the URL:
To url => hex encode unsafe characters =>
ftp://myuser:h%40t@myhostReferencesRFC 1738URL Encoding