Is there a simple command to run in a Linux terminal to tell if a proxy is SOCKS or HTTP?

link|improve this question
feedback

3 Answers

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.

link|improve this answer
feedback

On my SLES11 VM, I run socklist and grep for the port:

dev-s11:~ # socklist | grep 22
tcp 22 21112 0 4345 3 sshd
tcp 22 10473174 0 32616 3 sshd

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.

link|improve this answer
feedback

Other then just trying if it's SOCKS or HTTP, no , you can't.

To test if it's a http proxy:

set http_proxy = http://1.0.0.1:8080 
wget --proxy=on http://www.google.com/

This will download the html root of google, and if it has correct content, you know it was a http proxy.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.