Start the Safari.
Click the Safari, and select Preferences... or click the gear in the upper-right corner of the browser and select Preferences....
Click the Advanced tab menu.
Click the Change Settings... button next to Proxies.
Select Manual Proxy Configuration.
Select Web proxy (HTTP) .
In the Web Proxy Server section, enter the IP address or Hostname of the proxy server you want to connect to and enter the port number which is being used by the proxy server.
Select Proxy server requires password option.
In the Username box, enter the username to connect to the proxy server.
In the Password box, enter the password to connect to the proxy server.
Click OK to close the Network dialog box.
Click Apply button to save the configuration.
Close all dialog boxes.