Check the connectiont type SSH to the switch

Before checking https and http connections with the switch, manually by the browser, I disabled the use of Proxy in the LAN configuration of the browser: Use automatic configuration scripts. Can I do it programmatically? Thanks!