Setting proxy does not escape backslash


#1

My university proxy looks like “https://students\12345:password@proxy.uni.ac.za:80” but when I use apm set config https-proxy the variable is set as “https://students/12345:password@proxy.uni.ac.za:80” (the backslash after students is replaced with a forwardslash". I’ve tried to escape the backslash using \ and I’ve tried ASCII and Unicodes but to no avail.


#2

Technically, backslashes are NOT legal characters in a URL. Try “https://students\12345:password@proxy.uni.ac.za:80” (replacing the \ with its URL encoding %5C).


#3

Thanks but unfortunately that didn’t work. The proxy URL has caused me no end of problems.


#4

Wow, that’s bad. Do you know if that URL is working with npm?


#5

try an environment variable before running apm
for example
http_proxy=http://{{ip.address}}
https_proxy=https://{{ip.address}}