# Julia behind corporate proxy with authentication

**URL:** https://discourse.julialang.org/t/julia-behind-corporate-proxy-with-authentication/12786
**Category:** New to Julia
**Created:** [August 1, 2018, 1:20pm UTC](https://discourse.julialang.org/t/julia-behind-corporate-proxy-with-authentication/12786 "2018-08-01T13:20:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jottka](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jottka](https://discourse.julialang.org/u/jottka)
#### Post date: [August 1, 2018, 1:20pm UTC](https://discourse.julialang.org/t/julia-behind-corporate-proxy-with-authentication/12786/1 "2018-08-01T13:20:25Z")

</div>

Hi all, I’ve got a typical newbie problem. How can I use Julia behind a corporate proxy with authentication? I already set `http_proxy` in the env and git works due to `--global http.proxy` magic. I’ts a simple download that causes the failure:

```julia
julia> Pkg.add("IJulia")
INFO: Installing BinaryProvider v0.3.3
INFO: Installing Compat v1.0.0
INFO: Installing Conda v1.0.0
INFO: Installing IJulia v1.9.1
INFO: Installing JSON v0.17.2
INFO: Installing MbedTLS v0.5.12
INFO: Installing Nullables v0.0.6
INFO: Installing SHA v0.5.7
INFO: Installing VersionParsing v1.1.1
INFO: Installing ZMQ v0.6.3
INFO: Building Conda
INFO: Building MbedTLS
Info: Downloading https://github.com/JuliaWeb/MbedTLSBuilder/releases/download/v0.11/MbedTLS.v1.0.0.x86_64-w64-mingw32.tar.gz to C:\Users\ie10s\.julia\v0.6\MbedTLS\deps\usr\downloads\MbedTLS.v1.0.0.x86_64-w64-mingw32.tar.gz...
Ausnahme beim Aufrufen von "DownloadFile" mit 2 Argument(en): "Der
Remoteserver hat einen Fehler zurckgegeben: (407) Proxyauthentifizierung
erforderlich."
In Zeile:4 Zeichen:1
+ $webclient.DownloadFile("https://github.com/JuliaWeb/MbedTLSBuilder/releases/
dow ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

```

How can I inform julia about the proxy situation? Most tools have problems with this proxy/authentication settings.

Any help is greatly apreciated!

Cheers, Jörg

---

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [August 1, 2018, 1:45pm UTC](https://discourse.julialang.org/t/julia-behind-corporate-proxy-with-authentication/12786/2 "2018-08-01T13:45:06Z")

</div>

Atom used to work behind a proxy. So i just used Juno as the IDE and it was fine

---

<div class="post-metadata">

### Author: ![jottka](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jottka](https://discourse.julialang.org/u/jottka)
#### Post date: [August 1, 2018, 2:46pm UTC](https://discourse.julialang.org/t/julia-behind-corporate-proxy-with-authentication/12786/3 "2018-08-01T14:46:30Z")

</div>

Thanks for the fast response. I installed Atom and it has the same problem. I set the proxy using apm as recommended, I see the proxy in the commandline. In Wireshark I see that the authentication headers are simply missing ☹ .

---

<div class="post-metadata">

### Author: ![braamvandyk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/braamvandyk/32/5086_2.png) [@braamvandyk](https://discourse.julialang.org/u/braamvandyk)
#### Post date: [August 1, 2018, 5:42pm UTC](https://discourse.julialang.org/t/julia-behind-corporate-proxy-with-authentication/12786/4 "2018-08-01T17:42:46Z")

</div>

Does your corporate firewall block binary downloads from non-authorised sites? The only workaround I have is to download the packages when not connected to the corporate network. Pure source packages download fine, but many with a binary download are toast. I understand why this is set up like this, but it can be rather frustrating.

---

<div class="post-metadata">

### Author: ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)
#### Post date: [August 1, 2018, 7:33pm UTC](https://discourse.julialang.org/t/julia-behind-corporate-proxy-with-authentication/12786/5 "2018-08-01T19:33:29Z")

</div>

@jottka I have met a similar problem  
Please look at [Initialize Julia v0.6.2 behind a proxy · Issue #25245 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/25245)
