RedMadRobot / catbird

Mock server for UI tests
MIT License
50 stars 10 forks source link

Сonfiguring HTTP Proxy on macOS #38

Closed Alexander-Ignition closed 2 years ago

Alexander-Ignition commented 2 years ago
Alexander-Ignition commented 2 years ago

https://stackoverflow.com/questions/4029471/how-to-you-toggle-on-and-off-a-web-proxy-in-os-x-from-the-command-line

networksetup -setwebproxystate <networkservice> <on off>
networksetup -setsecurewebproxystate <networkservice> <on off>

Example :

networksetup -setwebproxystate  Wi-Fi on
networksetup -setsecurewebproxystate  Wi-Fi on

To handle the Modification alert : prefix sudo like

sudo networksetup -setwebproxystate  Wi-Fi on
sudo networksetup -setsecurewebproxystate  Wi-Fi on