3

I have my /etc/environment file set up with proxy settings. It looks like this -

http_proxy="http://userName:password@proxy:port/"
https_prxoxy="http://userName:password@proxy:port/"

The password contains an @ symbol which somehow seems to be conflicting with the latter @ symbol because of which I am not able to connect to the network. How do I escape the @ symbol in the password?

αғsнιη
  • 36,350
aandis
  • 133

1 Answers1

3

Lets say that the password is 123@456. In that case, the correct wat to escape the @ symbol is this:

http_proxy="http://userName:123%40456@proxy:port/"
https_prxoxy=same_as_above

I've only replaced the @ with its ASCII hexadecimal representation (%40)

0x2b3bfa0
  • 9,110
  • 7
  • 38
  • 55