When I use any command with sudo the environment variables are not there. For example after setting HTTP_PROXY the command wget works fine without sudo
wget
sudo
For individual variables you want to make available on a one off basis you can make it part of the command.
sudo http_proxy=$http_proxy wget "http://stackoverflow.com"