Julia behind corporate proxy with authentication


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> 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
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


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


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 :frowning: .


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.


@jottka I have met a similar problem
Please look at https://github.com/JuliaLang/julia/issues/25245