You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove webcmdlet tests validating http_proxy and https_proxy env vars #6804
Currently, we have tests specifically validating env vars for defining http and https proxies. However, these env vars are simply a side effect of corefx using libcurl on non-Windows and not something explicitly supported by corefx nor the webcmdlets. We should remove these tests as we're not testing libcurl directly.
I am full agree that this env variables are only for curl. Current .Net Core 2.1 socket based http client don't use curl so we can safely remove the tests.
This missed my radar because it was not labeled. But After considering it... I'm on board with supporting these directly in the Web Cmdlets code.
I think it may be surprising that these env vars are suddenly ignored on Linux. I'm not sure if these env vars were ever documented with PowerShell 6.0.0. But perhaps in the 6.1.0 documentation we should call this out as a breaking change with the workaround of -Proxy $env:http_proxy or $PSDefaultParameterValues["invoke-webrequest:proxy"] = $env:http_proxy. At least until we consider adding support or not.
Thanks for catching this!
Given that users can directly use dotnet HttpClient, I guess we should not focus on it at all because HttpClient no longer use curl. Best to open a feature request in dotnet repo. We can consider this as a regression in dotnet.
Mark Kraus (@markekraus) forgot I opened that a long time back :) I don't believe we ever ended up documenting these env vars in PowerShell-Docs. We can just leave the tests as they are for now particularly if there's interest to adding formal support in the future.
Activity
iSazonov commentedon May 3, 2018
I am full agree that this env variables are only for
curl. Current .Net Core 2.1 socket based http client don't usecurlso we can safely remove the tests.markekraus commentedon May 3, 2018
hmmm Ilya (@iSazonov) and Steve Lee (@SteveL-MSFT) have a look at #3112
This missed my radar because it was not labeled. But After considering it... I'm on board with supporting these directly in the Web Cmdlets code.
I think it may be surprising that these env vars are suddenly ignored on Linux. I'm not sure if these env vars were ever documented with PowerShell 6.0.0. But perhaps in the 6.1.0 documentation we should call this out as a breaking change with the workaround of
-Proxy $env:http_proxyor$PSDefaultParameterValues["invoke-webrequest:proxy"] = $env:http_proxy. At least until we consider adding support or not.iSazonov commentedon May 3, 2018
Thanks for catching this!
Given that users can directly use dotnet
HttpClient, I guess we should not focus on it at all becauseHttpClientno longer usecurl. Best to open a feature request in dotnet repo. We can consider this as a regression in dotnet.markekraus commentedon May 3, 2018
Ilya (@iSazonov)
Except that there is an ask to support it generally on both Windows and Linux. I will consider that request, but not in the 6.1.0 time frame.
SteveL-MSFT commentedon May 4, 2018
Mark Kraus (@markekraus) forgot I opened that a long time back :) I don't believe we ever ended up documenting these env vars in PowerShell-Docs. We can just leave the tests as they are for now particularly if there's interest to adding formal support in the future.