القاعدة المعرفية

  1. الرئيسية
  2. Problems
  3. URL that contains "@" in password
منشأ
معدل

مقالة 187

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:
user: myuser
password: h@t
host: myhost

To url => hex encode unsafe characters =>
ftp://myuser:h%40t@myhost

References
RFC 1738
URL Encoding

كلمات مفتاحية

مقالات ذات علاقة


What do you think about this topic? Send feedback!