PHP Composer behind http proxy

后端 未结 10 2103
日久生厌
日久生厌 2020-11-29 05:45

I use composer on a network where the only way to access the internet is using HTTP or socks proxy. I have http_proxy and https_proxy environment variables. When compose tri

10条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 06:17

    If you have to use credentials try this:

    export HTTP_PROXY="http://username:password@webproxy.com:port"
    

提交回复
热议问题