# Overriding default proxy setup in Julia for Windows

**URL:** <https://discourse.julialang.org/t/overriding-default-proxy-setup-in-julia-for-windows/57159>\
**Category:** General Usage\
**Created:** [March 15, 2021, 2:00am UTC](https://discourse.julialang.org/t/overriding-default-proxy-setup-in-julia-for-windows/57159 "2021-03-15T02:00:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [March 15, 2021, 8:48am UTC](https://discourse.julialang.org/t/overriding-default-proxy-setup-in-julia-for-windows/57159/2 "2021-03-15T08:48:01Z")

</div>

Setting environment variables seem to be the solution:

> [@Install packages behind the proxy](https://discourse.julialang.org/t/install-packages-behind-the-proxy/23298):
>
> Hi everyone! I try to use Julia in my current job. But have trouble with installing packages behind the proxy. I use 1.1.0 binaries. error massage: julia\> Pkg.add(“IJulia”) Cloning default registries into ~/.julia Cloning registry from “[GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General.git)” ERROR: failed to clone from [GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General.git), error: GitError(Code:ERROR, Class:Net, curl error: Unsupported…

But this is a problem which pops up regularily, so perhaps it is something more complex than just setting environment variables and depends on other things too. Just give it a try and report back.

In above thread this has worked:

> You can add these lines to `~/.julia/config/startup.jl` , which will execute on each new Julia session:
> 
> ```julia
> ENV["HTTP_PROXY"] = "http://proxy.osmp.ru:3128"
> ENV["HTTPS_PROXY"] = "http://proxy.osmp.ru:3128"
> 
> ```

Credits go to @felipenoris

---

_[View the full topic](https://discourse.julialang.org/t/overriding-default-proxy-setup-in-julia-for-windows/57159)._
