5
3
$ echo $http_proxy
http://my.proxy.com
$ curl -v http://files.com/a.txt
* About to connect() to proxy my.proxy.com
# Correct downloading
$ sudo echo $http_proxy
http://my.proxy.com
$sudo curl -v http://files.com/a.txt
# Hanging.
Last command doesn't use proxy. Why?
$su
$curl -v http://files.com/a.txt
Is also working correctly.