dongqishou7471 2016-11-11 21:20
浏览 208

如何使用代理配置composer'

First of all I apologize for my English and thank you in advance for any response. I was reading several solutions about the configuration of composer behind a proxy but the truth is that I still have problems. Already create the environment variables

HTTP_PROXY_REQUEST_FULLURI = false
HTTPS_PROXY_REQUEST_FULLURI = false
HTTP_PROXY = my_http_proxy: proxy_port
HTTPS_PROXY = my_https_proxy: proxy_port

But I get the following problem when I use composer: The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Cannot connect to HTTPS server through proxy https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date

[Composer\Downloader\TransportException]
The 'http://packagist.org/p/provider-    2013%24c23e27d4ef97dede5bbe3fe1d348566
bd1a463ccbe767186c51beab5436c9bad.json' URL could not be accessed:     HTTP/1.1
400 Bad Request 

Again thank you for any help and time you can give me

  • 写回答

1条回答 默认 最新

  • dongpai6552 2016-12-21 14:00
    关注

    Maybe your SO need define variables in lower case, or maybe you need define user and password for your proxy.

    Another thing in my case was I didn't set http_proxy variable with "http://" part like below:

    http_proxy = http://username:password@ip:port
    and
    https_proxy = http://username:password@ip:port

    评论

报告相同问题?

悬赏问题

  • ¥30 自适应 LMS 算法实现 FIR 最佳维纳滤波器matlab方案
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥15 Python3.5 相关代码写作
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像