# Pkg.add() through proxy fails on Julia 0.5, Windows

**URL:** <https://discourse.julialang.org/t/pkg-add-through-proxy-fails-on-julia-0-5-windows/687>\
**Category:** General Usage\
**Created:** [December 2, 2016, 4:11am UTC](https://discourse.julialang.org/t/pkg-add-through-proxy-fails-on-julia-0-5-windows/687 "2016-12-02T04:11:30Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [January 19, 2017, 1:04am UTC](https://discourse.julialang.org/t/pkg-add-through-proxy-fails-on-julia-0-5-windows/687/15 "2017-01-19T01:04:28Z")

</div>

I think libgit2 might not parse user credentials in the proxy setting properly.

Specifying username and password does not work for me on Julia v0.5 (libgit2). It did work on Julia v0.4 (git).

```julia
proxy = http://username:password@server:port

```

results in the following error on Julia v0.5:

```julia
ERROR: GitError(Code:ERROR, Class:OS, Failed to set proxy: The parameter is incorrect.)

```

Omitting the username and password seems to work:

```julia
proxy = http://server:port

```

So this is what I have now in `.gitconfig` in home directory. It seems to work for both Julia v0.4 and v0.5:

```julia
[url "https://github.com/"]
	insteadOf = git://github.com/
[http]
	proxy = http://server:port

```

Note that `[https]` does not seem necessary.

---

_[View the full topic](https://discourse.julialang.org/t/pkg-add-through-proxy-fails-on-julia-0-5-windows/687)._
