I am having issues authenticating with a specific proxy provider.
let someProxy = newProxy("http://hostname:port", "username:password")
let client = newHttpClient(proxy=someProxy)
echo client.getContent("http://ipv4.icanhazip.com")
While this code works with one proxy provider I use, another fails to authorize. I figured it might be an issue with the proxy but I can connect just fine using curl:
curl -v --proxy http://hostname:port -U username:password http://ipv4.icanhazip.com/
The above code curl command connects to the proxy just fine so I'm left scratching my head. Any ideas?
Ah, cool. looking at https://www.iana.org/assignments/http-authschemes/http-authschemes.xhtml it looks like most schemes are named with the capital first letter.
You have to create pull request to nim code :)