It happens because either: 1\. You are doing something wrong, like not setting the http_proxy env var (Unlikely since it works for you in curl)
2\. There is a bug in the httpclient module (Likely as there were other bugs with the proxy support before) I don't use proxies, I also don't have the time to look into every single issue that pops up. So it would be really helpful if you could try to fix this. Nim is an open source project and we don't have many resources (building a language is hard), so the only way we can scale is if everyone that uses Nim and finds bugs does their best to fix them. If you're getting stuck finding the cause of this then please join our IRC/Gitter where someone will give you hand: [https://nim-lang.org/community.html](https://nim-lang.org/community.html).