Falure to connect to proxy server

I have tried the button for network configuration at the right side of the tray but when trying to configure proxy and using $http_proxy to check if the proxy is connected, nothing shows up. The method I set was Automatic, and I imputed the PAC URL and PAC script for my chosen proxy. What could have I done wrong? I can connect to the internet just not through wifi.