Unable to connect only when using wget with 400 bad request error

Hi

I have a proxy configured on my ubuntu o.s. running on vmware player , but when trying to wget Download Nagios Core from SourceForge.net, I have the following error:

failed: Connection refused

I have check on the web, they ask me to run

sudo ufw status

, but the output is enabled , so what could be wrong?