Suggestion on when you have to set the 'http_proxy' variable

For example, on Windows:
set http_proxy=http://user:pwd@proxyserver:port