Terminal does not use proxy settings configured in the network preferences pane because it doesn't do any connection. Terminal just let you fire commands which will use the network in different ways.
When setting your
https_proxy environment variables should not include the
Therefore the environment variable in your case should read:
Note: many old programs have issues with connecting through proxy servers which require authentication before connecting.
Due to our infrastructure we found it much easier to have users run SquidMan locally and have it configured to connect to our main proxy. This allows the local machine to act as a proxy directly, and eliminates a lot of authentication issues etc when using proxy servers on Mac machines, especially in a mixed and AD environments.
In the case of using this method our
https_proxy would be: