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

    评论

报告相同问题?

悬赏问题

  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题