Test proxies

To perform proxy testing before buying, check connectivity and session behavior, verify location and browser leaks, then measure valid-response success rate and latency on your intended targets. Run repeated requests under matched conditions because one successful IP lookup does not establish reliability.

For tool selection, see our proxy checker guide.


Key Facts

  • Proxy testing needs three checks: connectivity and sessions, location and leaks, and workload performance.
  • An IP-echo response alone does not establish target-site reliability.
  • Valid-response success rate counts expected-content responses against all attempted requests.
  • A CAPTCHA page counts as a failure even when its HTTP status is 200.
  • Median latency describes the middle observation; p95 helps reveal slower requests.
  • A city-level IP lookup cannot prove the proxy’s physical location.

Why proxy testing needs more than one request

One request can establish that a particular connection worked, but it cannot establish sustained reliability, accurate targeting or session stability. Repeat the checks across the conditions your application will encounter.

Before testing, record the target URL, expected content, exit country, session mode, timeout, concurrency, retry policy and pass/fail thresholds.

Keep a direct connection baseline where access is permitted, so target outages and client-side problems are easier to separate from proxy problems.


1. Test connectivity and session behavior with cURL

Send a request through the proxy to an HTTPS endpoint you control or are authorized to use, then repeat it with the same session configuration. Inspect the returned content and observed exit IP, not just whether the command finishes.

Untested command example: Set PROXY_URL to your proxy configuration and TEST_URL to an HTTPS IP-echo endpoint. Keep credentials out of shared terminal output and reports.

: "${PROXY_URL:?Set a non-empty PROXY_URL}"
: "${TEST_URL:?Set a non-empty TEST_URL}"
curl --noproxy "" --proxy "$PROXY_URL" \
  --connect-timeout 10 --max-time 30 \
  --silent --show-error \
  --write-out '\nstatus=%{http_code} connect=%{time_connect} ttfb=%{time_starttransfer} total=%{time_total}\n' \
  "$TEST_URL"

The official cURL manual defines time_connect as elapsed time until the TCP connection to the destination or proxy completes. time_starttransfer measures time until the first response byte, while time_total covers the full operation. These timings are cumulative; do not add them together.

The command overrides proxy bypass settings for this request. Its timeout values are example settings, not recommended acceptance thresholds. Preserve error messages locally and distinguish connection, authentication, TLS and destination failures before changing configuration.

For a sticky-session check, configure one session using your provider’s documented settings. Repeat requests at intervals throughout the period your workflow needs, recording the timestamp and exit IP. Use the same destination and session identifier throughout; a few immediate requests cannot establish long-term stability.

Untested repetition example: This three-request loop is a connectivity smoke test. To assess sticky-session duration, record a timestamp and exit IP at each interval throughout your required session period.

: "${PROXY_URL:?Set a non-empty PROXY_URL}"
: "${TEST_URL:?Set a non-empty TEST_URL}"
for i in 1 2 3; do
  curl --noproxy "" --proxy "$PROXY_URL" \
    --silent --show-error --max-time 30 "$TEST_URL"
  printf '\n'
done

An unexpected IP change can have several explanations, including session configuration, expiry or exit availability. A stable IP also does not prove that application cookies or login state will survive. Test the actual session workflow separately.


2. Check IP location, DNS and WebRTC leaks

Compare the observed exit country with the country you requested, then test public IP exposure and DNS behavior in the browser you actually use. A terminal request cannot validate the browser’s complete network behavior.

Record each exit IP, requested country, lookup result, database and timestamp. Report country matches against successful lookups, with failed lookups counted separately. Do not discard early mismatches on the assumption that targeting will settle.

IP databases can disagree. MaxMind’s geolocation accuracy documentation explains that accuracy varies with geography, network type and other factors, and that databases need not agree. A city estimate cannot prove a physical address or server location.

If a location matters to your workflow, combine database checks with the destination’s observed behavior. Our guide to testing a website from another country covers the application-side check.

  • Public IPv4 and IPv6: Record your direct connection’s public addresses, enable the browser proxy, then repeat the checks. Investigate any direct public address that remains visible. An unavailable IPv6 result does not establish protection on networks where IPv6 works.
  • WebRTC: Use a candidate-gathering test and record candidate addresses and types before and after enabling the browser proxy. Compare exposed connection candidates with your baseline. Your direct public address is different from a private LAN address or an obscured local hostname; these observations have different privacy implications.
  • DNS: Use a DNS test that generates unique hostnames and reports the recursive resolvers observed by its authoritative server. Run it before and after enabling the browser proxy. A resolver’s location alone does not prove a leak. Compare the result with the intended routing and the browser’s DNS configuration.

The W3C WebRTC privacy and security specification explains the address exposure considerations behind browser testing. Repeat checks for each browser profile and network configuration used in production.

For SOCKS requests, distinguish local hostname resolution from resolution through the proxy. The cURL SOCKS hostname documentation specifies proxy-side resolution with socks5h. In this untested example, SOCKS_PROXY_URL must use that scheme:

: "${SOCKS_PROXY_URL:?Set a non-empty SOCKS_PROXY_URL}"
: "${TEST_URL:?Set a non-empty TEST_URL}"
curl --noproxy "" --proxy "$SOCKS_PROXY_URL" \
  --silent --show-error --max-time 30 "$TEST_URL"

This controls destination hostname resolution for that command. It does not establish how other applications resolve names or route traffic.


3. Measure proxy speed and success rate with repeatable proxy testing

Measure success as complete, expected-content responses divided by attempted requests, and report latency under matched conditions. Count CAPTCHA pages, incomplete files and wrong content as failures even when the HTTP status is 200.

Valid-response success rate = valid responses / attempted requests x 100. Compare median and p95 latency separately, and publish retries alongside first-attempt results.

3 key ways to test proxies before you buy

Measure What to record Interpretation
Valid-response success rate Status plus full-file validation or an application-specific content check Whether the response satisfies the task
Median latency The middle request duration Typical observed waiting time
p95 latency The 95th percentile using a stated calculation method Slower requests hidden by the median
Failure categories Connection, TLS, timeout, status and content errors Evidence for troubleshooting
Retry outcomes First-attempt results and eventual completion separately The additional time and requests needed

Fix the runner location, destination, file size, country, concurrency, session mode, timeout and client configuration. Interleave comparison runs to reduce time-of-day effects. Include a controlled endpoint and a permitted real target, and keep cold connections and reused connections distinguishable.

Timing definitions matter. Grafana’s k6 metric definitions exclude initial DNS and connection time from http_req_duration; http_req_failed follows the configured response callback. Neither metric should be assumed to match a full-operation timer or your expected-content success rule.

Untested Python example: Install Requests with SOCKS support: python -m pip install 'requests[socks]'. Include the proxy URL scheme; use socks5h:// for proxy-side hostname resolution. Set PROXY_URL and TEST_URL, and set EXPECTED_SHA256 to the trusted SHA-256 digest of a fixed test file. This illustrative 20-request loop uses no retries and measures full response download time. It is not the script used for the measurement snapshot below. This example allows connection reuse and pools all valid-response timings. It does not separate new-connection latency from reused-connection latency.

import hashlib
import os
import statistics
import time
import requests

proxy = os.environ["PROXY_URL"]
url = os.environ["TEST_URL"]
if not proxy.strip() or not url.strip():
    raise ValueError("PROXY_URL and TEST_URL must be non-empty.")
expected = os.environ["EXPECTED_SHA256"].lower()
n, durations = 20, []
with requests.Session() as session:
    session.trust_env = False
    session.proxies = {"http": proxy, "https": proxy}
    for _ in range(n):
        start = time.perf_counter()
        try:
            with session.get(url, timeout=(10, 30),
                             allow_redirects=False) as response:
                elapsed = time.perf_counter() - start
                digest = hashlib.sha256(response.content).hexdigest()
                if response.status_code == 200 and digest == expected:
                    durations.append(elapsed)
        except requests.exceptions.InvalidSchema:
            raise
        except requests.RequestException:
            pass
print(f"Valid responses: {len(durations)}/{n}")
print(f"Success rate: {100 * len(durations) / n:.2f}%")
median = statistics.median(durations) if durations else None
print(f"Median seconds, valid responses only: {median}")

The example follows the documented Requests proxy configuration and Requests API. Its connect/read timeout is not a hard deadline for the entire download. Failed attempts remain in the success-rate denominator, but their durations are excluded from the displayed median.

For a larger run, retain individual timings and failure categories, calculate p95 and state which outcomes enter each latency statistic. For application integration, see our Python Requests proxy guide.


How to test datacenter proxy speed and reliability before buying

Test datacenter proxies against both a controlled endpoint and your permitted production targets before committing to a larger purchase. Evaluate valid-content success, median and p95 latency, session stability and retry cost together.

A quick static-file response answers an infrastructure question. It does not establish that a particular website will return usable pages, maintain a login or accept the request volume your application needs.

For a multi-step login flow, test the complete sequence with a sticky session. For independent requests, test rotation. Evaluate datacenter proxies on the actual target using your predefined success-rate and latency limits.

Set your acceptance thresholds from application requirements, not a universal claim about what proxy speed should be. Compare datacenter proxies with another proxy type only under matched conditions; our datacenter versus residential guide explains the selection context.


DataImpulse’s benchmark: method, results and limitations

Our October 16, 2026 infrastructure snapshot recorded 99.95% residential success and 99.85% datacenter success across 2,000 requests per type. Success required HTTP 200 plus the full file, rather than status alone.

We used an adapted infrastructure-testing approach inspired by Proxyway, with a 9 KB static file on cdnjs. This differs from Proxyway’s currently published Cloudflare Trace target and test schedule; the results are not directly comparable. The test used US exits, rotating IPs, Python requests 2.31.0 and 10 parallel workers. It ran from 15:12 to 15:21 UTC, and timing covered the full request through the proxy.

Proxy type Valid responses Success rate Median p95
Residential 1,999 / 2,000 99.95% 0.88 s 5.47 s
Datacenter 1,997 / 2,000 99.85% 0.92 s 5.41 s

Source: Our October 16, 2026 infrastructure measurement records, including the raw request log and summary. Residential recorded one SSL error; datacenter recorded two SSL errors and one proxy error.

These results describe one short window and one static target. The measurement record does not specify runner location, timeout settings, retry handling or which outcomes enter the latency summaries. Those omissions limit reproducibility and comparison with other runs.

This is a snapshot, not a general performance benchmark or a prediction for protected websites. The static-file test did not measure browser leaks, city accuracy, sticky-session duration or mobile performance.

A more representative follow-up would distribute requests across a full day, separate controlled and permitted real-target results, and record all configuration details. Country observations and a session trace should be reported separately from request success.


Proxy testing FAQ


Frequently Asked Questions

How do I test if a proxy is working?

Send a request through the proxy to an endpoint that reports the source IP, and check that the observed exit is the one you expect. Then request a permitted target and validate its content. A successful IP lookup establishes connectivity for that request, not general reliability.

What is a good proxy success rate?

Choose an acceptance threshold based on how many failed tasks your application can tolerate. Define success before measuring and count all attempted requests, including timeouts. Publish first-attempt results separately from results recovered through retries.

How do I test datacenter proxy speed before buying?

Run repeated requests from the same client to a fixed file and to your intended targets. Keep concurrency, country, timeout and session settings consistent. Assess valid-content success alongside median and p95 latency before increasing your commitment.

Why does a proxy show the wrong country or city?

Possible explanations include targeting configuration, the selected exit and differences between geolocation databases. Record the exit IP and timestamp, then compare independent lookups and the destination’s behavior. Do not treat a city estimate as proof of physical location.

Can cURL prove that my browser has no leaks?

No. A cURL request exercises its own connection settings, while a browser can use additional networking paths and DNS settings. Check public IPv4, IPv6, DNS behavior and WebRTC in the browser profile used for the actual workflow.

How can I check whether a sticky session works?

Reuse the same documented session configuration and record exit IPs throughout the period your application needs. Test related application requests too, because an unchanged IP does not establish that cookies or login state persist. Investigate changes using timestamps and session settings.

Does a 200 response mean the proxy request succeeded?

Only if the response also contains the expected content. A challenge page or incomplete download can be unusable despite that status. For fixed files, compare a trusted digest; for dynamic pages, use a task-specific content check.


Apply the same checks to your next proxy purchase

If you are evaluating DataImpulse, our product includes residential proxies from $1 per GB with a pool of 90M+ IPs. Run the same connectivity, location, session and workload checks before expanding usage.

New customers can start with a one-time $5 Intro plan; subsequent top-ups start at $50. We do not sell ISP/static residential proxies. Choose based on your measured workload results.

Last updated: November 10, 2026.