💻 Software
How can I get Mac OS X's proxy information in a Bash script?
Fresh5 days ago
Mar 15, 202670095 viewsConfidence Score0%
0%
Problem
I have several network locations set up on my laptop: Work, Home, etc. The work one(s) all have a proxy server set up, while the others don't. This works fine for OSX applications -- Safari, Mail, even Firefox and Thunderbird with the System Proxy plugin. For terminal applications such as , , , and…
Error Output
export HTTP_PROXY='http://proxy.mycompany.com:80' export http_proxy=$HTTP_PROXY
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I get Mac OS X's proxy information in a Bash script?
Low Risk
What version of Mac OS X? I'm not positive the tool is included with Mac OS X 10.4 or earlier. should be what you're looking for, namely (eg. sudo networksetup -getwebproxy Airport) The output comes out as so: So you will need to convert the output …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix