diff --git a/stdlib/Pkg/src/PlatformEngines.jl b/stdlib/Pkg/src/PlatformEngines.jl index 8fb430d146be8..736ccccb0ea67 100644 --- a/stdlib/Pkg/src/PlatformEngines.jl +++ b/stdlib/Pkg/src/PlatformEngines.jl @@ -199,6 +199,8 @@ function probe_platform_engines!(;verbose::Bool = false) [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; \$webclient = (New-Object System.Net.Webclient); + \$webclient.UseDefaultCredentials = \$true; + \$webclient.Proxy.Credentials = \$webclient.Credentials; \$webclient.Headers.Add("user-agent", \"Pkg.jl (https://github.com/JuliaLang/Pkg.jl)\"); \$webclient.DownloadFile(\"$url\", \"$path\") """