When i running :
curl -sS -o composer-setup.ph i get the error.
I already reinstall and purge and install curl. my Apache server is running as well.
51 Answer
Based on your comments, it appears you have a local proxy configured that is not working properly. Fixing the proxy is probably out of scope of this question However you can fix the curl command by unset-ing these the proxy environment variables temporarily.
$ unset http_proxy $ unset HTTPS_PROXY $ unset https_proxy 4