composer: get version error with HTTP_PROXY_REQUEST_FULLURI=false
When I set HTTP_PROXY_REQUEST_FULLURI to false with proxy. I get this error:
composer.phar --version
Composer version 5d360ab43b3e3bc29bbce969a2574ae1e7080fbf
composer.phar diag
Checking platform settings: OK
Checking http connectivity: OK
Checking HTTP proxy: OK
Checking HTTPS proxy support for request_fulluri: OK
Checking composer.json: OK
Checking composer version: OK
composer.phar update -o
Loading composer repositories with package information
Updating dependencies (including require-dev)
The "http://packagist.org/p/kriswallsmith/assetic$e3d5f0722930c4c2f6bd90a5e13c1a50644071a02d02efc41eec3374bb29bc5e.json" file could not be downloaded (HTTP/1.1 400 Invalid header received from client)
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Generating autoload files
when I remove HTTP_PROXY_REQUEST_FULLURI, I can not install/update https vendor, and I get this error:
composer.phar diag
Checking platform settings: OK
Checking http connectivity: OK
Checking HTTP proxy: OK
Checking HTTPS proxy support for request_fulluri: FAIL
It seems there is a problem with your proxy server, try setting the "HTTP_PROXY_REQUEST_FULLURI" environment variable to "false"
Checking composer.json: OK
Checking composer version: OK
seems HTTP_PROXY_REQUEST_FULLURI only use for download vendor, not use for get version information from packagist.org site.
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 23 (7 by maintainers)
Commits related to this issue
- Add HTTPS_PROXY_REQUEST_FULLURI to disable the request_fulluri only for https requests, fixes #1946, fixes #1839 — committed to digitalkaoz/composer by Seldaek 11 years ago
Hi,
Looks like this problem is back. Cant they do something about this?
My output results in terminal:
php composer.phar install Loading composer repositories with package information Installing dependencies (including require-dev)
[Composer\DownloaderTransportException]
The “http://packagist.org/p/zendframework/zend db$09ae9cbd38db58265d61b9d9f7633ed0fc3d65d8bb27ae96d1bfc190cb11597a.json” file could not be downloaded: failed to open stream: HTTP request failed!
printenv | grep PROXY HTTPS_PROXY_REQUEST_FULLURI=false HTTP_PROXY_REQUEST_FULLURI=true
Btw with or without the above environment variables it does the some thing and it has been giving me this problem for months now. In fact I have not been able to get passed this problem so that I am unable to continue with Zend Framework 2. Quite frustrating!
How to set HTTP_PROXY_REQUEST_FULLURI ?
Where i nedd type this ?
upd. export HTTP_PROXY_REQUEST_FULLURI