Gangmax Blog

Test HTTP Proxy with Linux Command

From here.

To test a given proxy works or not, you can use the following command:

1
2
3
4
5
6
7
# Request the headers only. HTTP status code 200 should be returned.
curl -I www.bing.com
# Request the headers by using the given "proxy host/port".
# If the proxy works, HTTP status code 200 will be returned.
# Otherwise you should get an error such as below:
# curl: (52) Empty reply from server
curl -x http://proxy.server.domain.name:8000 -I www.bing.com

Comments