Search code examples
httpurlurl-encoding

URL: Username with @


To send username and password with a URL, we use this scheme:

http://username:[email protected]_site.com

But my username is [email protected].
The problem is the @.

How can I solve it?


Solution

  • You need to URL encode the @ as %40.