Is there a simple command to run in a Linux terminal to tell if a proxy is SOCKS or HTTP?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
You could check which of the relevant ports is open (e.g. using telnet). Socks usually uses port 1080, HTTP usually uses 80, 443, 8443 or 8080. |
||||
|
|
|
On my SLES11 VM, I run
That tells me whether it's managed by ssh or not. If you are using default ports, http will be 80 and ssh 22. That will get you started - ask more Qs if you need more specifics. |
|||
|
|
|
Other then just trying if it's SOCKS or HTTP, no , you can't. To test if it's a http proxy:
This will download the html root of google, and if it has correct content, you know it was a http proxy. |
|||
|
|