A big scraping job that fails after two hours costs more than five minutes of testing. Run these checks first, in order.
1. Does it connect?
curl -x http://USERNAME:PASSWORD@HOST:PORT https://api.ipify.orgYou should get back an IP address that isn't yours. A 407 means wrong credentials; a timeout usually means the wrong port or a firewall.
2. Is the location right?
Ask an IP lookup service where the address is:
curl -x http://USERNAME-country-de:PASSWORD@HOST:PORT https://ipinfo.io/jsonCheck the country (and city, if you targeted one). Lookup databases sometimes disagree, so if one says a different city, try a second service before you assume the proxy is wrong.
3. Does it rotate, or stick, as expected?
Run the request from step 1 five times.
- Rotating: you should see different IPs.
- Sticky (with
-session-…-ttl-…in the username): you should see the same IP every time.
If a sticky session gives you new IPs, check that every request uses exactly the same session id.
4. Does the target site accept it?
Request a real page from the site you plan to scrape, not just an IP checker. Look at the status code and the page content: a 200 with a captcha page inside is still a block.
curl -s -o /dev/null -w "%{http_code} %{time_total}s\n" -x http://USERNAME:PASSWORD@HOST:PORT https://example.com5. Is it fast enough?
The command above prints the total time per request. Run it ten times and look at the spread, not just the average. Residential and mobile IPs are real connections, so a few slow ones are normal; set your scraper's timeout above the typical time and retry the rest.
Then start small
Run a few hundred requests before the full job, and watch the share of errors. If it climbs over time, you're hitting a rate limit: slow down or spread the load over more IPs. Our post on why scrapers get blocked covers what to change.
