Emailtry

Emailtry

Free verified public proxies · HTTP, HTTPS, SOCKS4, SOCKS4a, SOCKS5

How to test a proxy yourself with curl

Updated 2026-11-30 · 5 min read

ProxyChk already checks every address on the live list against our own judge, but you should still test a candidate from your machine before you put it in a browser or a script. The proxy may have died since the last daily run, your network may not be able to reach it, or the protocol field may not match the client you intend to use.

This guide uses curl, which is available on macOS, Windows 10/11 (as curl.exe), and virtually every Linux distribution. The examples use placeholder IP and PORT — copy a real IP:port from the list or from a country page. There is no bulk API on this site; test one address at a time.

For the meaning of the protocol column, see HTTP vs HTTPS vs SOCKS. For a longer script-oriented reference, see Python requests and curl.

A note about the judge and IP pages

Two kinds of check are useful:

  1. Can the proxy reach a simple HTTPS site, and which exit IP comes out? Any honest “what is my IP” service will do. Examples below use https://ifconfig.me because it returns a single IP in the body. You can substitute another service you trust.
  2. What headers does an HTTP hop add? That is closer to our anonymity classification. For that you need an HTTP (not HTTPS) echo endpoint, because hop headers are visible on the forwarded HTTP request. Our judge at http://proxychk.com/judge is built for checkers; it may rate-limit noisy clients. Prefer it for occasional manual tests, not for a tight loop from your laptop.

Never send passwords, session cookies, or internal hostnames through a public proxy while you are testing.

Test an HTTP row

An HTTP row should work as an HTTP proxy. Start with a clear, verbose request and a short timeout:

curl -sS -m 20 -x http://IP:PORT http://example.com/ -D - -o /tmp/proxy-body -w "\nhttp_code=%{http_code} time=%{time_total}\n"

-x http://IP:PORT is the proxy. -m 20 gives up after 20 seconds. -D - prints response headers on stdout.

To see the exit IP over HTTPS (this requires the proxy to support CONNECT, which not every HTTP-only row will):

curl -sS -m 20 -x http://IP:PORT https://ifconfig.me

If the HTTPS request fails with a CONNECT error but the HTTP request worked, you are probably looking at an HTTP-only proxy. On this site, a successful CONNECT check would have been listed in the HTTPS column.

To inspect anonymity-style headers, fetch an HTTP echo service:

curl -sS -m 20 -x http://IP:PORT http://proxychk.com/judge

Look at the JSON or text for anonymity, the client IP, and any X-Forwarded-For / Via fields. Compare that with the label already on the row, but remember the judge may have been queried from our checker, not from your network.

Test an HTTPS row

“HTTPS” on ProxyChk means “this HTTP proxy completed CONNECT + TLS to our HTTPS judge,” not “the proxy URL starts with https://”. In curl:

curl -sS -m 20 -x http://IP:PORT https://ifconfig.me

You should get a single IP in the body — the exit. If you instead write -x https://IP:PORT and it fails, that usually means the proxy does not speak TLS on the first hop. Switch back to http://IP:PORT.

Verbose mode is helpful when CONNECT fails:

curl -v -m 20 -x http://IP:PORT https://ifconfig.me

Look for a line about CONNECT IP:443 or the judge host, and for HTTP/1.1 200 (or similar) from the proxy before the TLS handshake starts. A 403, 407 or a hung CONNECT is a failed proxy, not a problem with ifconfig.me.

Test SOCKS4, SOCKS4a and SOCKS5

curl’s SOCKS flags matter, especially for DNS.

SOCKS5, with DNS resolved locally first:

curl -sS -m 20 --socks5 IP:PORT https://ifconfig.me

SOCKS5, with DNS resolved by the proxy (preferred when you do not want local DNS leaks):

curl -sS -m 20 --socks5-hostname IP:PORT https://ifconfig.me

Equivalent URL forms:

curl -sS -m 20 -x socks5://IP:PORT https://ifconfig.me
curl -sS -m 20 -x socks5h://IP:PORT https://ifconfig.me

The h in socks5h is the remote-DNS variant.

SOCKS4 (IPv4 only; curl will resolve the name locally and pass an IPv4 address):

curl -sS -m 20 --socks4 IP:PORT https://ifconfig.me

SOCKS4a (hostname can be sent to the proxy):

curl -sS -m 20 --socks4a IP:PORT https://ifconfig.me

Match the flag to the column. A SOCKS5 server may reject a SOCKS4 handshake, and the reverse is also true. Public-list SOCKS5 servers that require a username and password will not show as live on this site; our checker uses no credentials.

Interpreting common failures

Our daily job verifies eligible addresses without a count cap, then skips a failed proxy for 30 days unless it shows up in a public list again. Your laptop test is still the right last step before you configure a browser.

A minimal one-liner checklist

For an HTTPS or HTTP CONNECT-capable row:

curl -sS -m 20 -x http://IP:PORT https://ifconfig.me

For SOCKS5 with remote DNS:

curl -sS -m 20 -x socks5h://IP:PORT https://ifconfig.me

If the command prints an IP and exits zero, the path works from your machine right now. Then, if you still want to use it, follow the browser and OS guide and keep the risks in mind.

Related pages