kendarorg / PhpNuget

Php nuget manager supporting complex queries on txt files or MySQL
http://www.kendar.org/?p=/dotnet/phpnuget
Other
23 stars 15 forks source link

Honour a web proxy setting when fetching external nuget packages #70

Closed hmw42 closed 5 years ago

hmw42 commented 5 years ago

Phpnuget fails to fetch nuget packages from external servers (for importing them) if all network traffic must pass a central http[s] proxy. In this PR I propose the following:

Use a configured http proxy when fetching external nuget packages. If the configuration option is not set, try to retrieve the value of the http_proxy environment variable and use that as the proxy. If both fails, don't use a proxy.