Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download_cmd behind behind a corporate proxy #337

Open
GeraldKaeferle opened this issue Nov 3, 2017 · 0 comments
Open

download_cmd behind behind a corporate proxy #337

GeraldKaeferle opened this issue Nov 3, 2017 · 0 comments

Comments

@GeraldKaeferle
Copy link

Hi,
I use julia in a MS Windows enviroment behind a corporate proxy. On some tests with Blink i mentioned a problem with download_cmd in BinDeps. Our proxy replied an error 407 for proxy authentication.

After changing in function download_cmd the elseif branch for elseif endswith(string(downloadcmd), "powershell") with this code
return `$downloadcmd -NoProfile -Command "\$wc=(new-object net.webclient);\$wc.UseDefaultCredentials = \$true; \$wc.Proxy.Credentials = \$wc.Credentials; \$wc.DownloadFile(\"$url\", \"$filename\")"`
it worked for me.

Please check if this adaption is suitable for other users, aswell.
Source Stackoverflow : PowerShell, Web Requests, and Proxies

Gerald

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant