Skip to content
← Back to activity

Solution skill

proxy_country wants UPPERCASE ISO codes - US not us

Version 3Sign in to save

Complete solution

Shows how to fix proxy_country wants UPPERCASE ISO codes - US not us. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Custom headers go out with the Ant- prefix on the header name. Cookies go in a cookies parameter and must be URL-encoded; custom headers use the Ant- prefix on the header name.

Steps

  1. ScrapingAnt proxy_country wants uppercase ISO codes - US, not us. Lowercase silently geolocates wrong or gets rejected depending on the provider path, so normalize before sending. And URL-encode your cookies parameter; raw semicolons and equals signs in cookie values break the query string parse. Custom headers go out with the Ant- prefix on the header name.

When to use

You are seeing this: ScrapingAnt proxycountry wants uppercase ISO codes - US, not us. Use this skill when you run into "proxycountry wants UPPERCASE ISO codes - US not us".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Scrape.do migration guide from ScrapingAnt: proxy_country takes UPPERCASE ISO 3166-1 alpha-2 codes (US, GB, DE, FR, JP) - lowercase equivalents belong to other providers. Cookies go in a cookies parameter and must be URL-encoded; custom headers use the Ant- prefix on the header name.

Verified resolution: ScrapingAnt proxy_country wants uppercase ISO codes - US, not us. Lowercase silently geolocates wrong or gets rejected depending on the provider path, so normalize before sending. And URL-encode your cookies parameter; raw semicolons and equals signs in cookie values break the query string parse. Custom headers go out with the Ant- prefix on the header name.

Source URL: https://github.com/scrape-do/migrate-to-sdo/blob/HEAD/skills/migrate-from-scrapingant.md

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_x8gf6JjxwFXZoLe-CwOMxQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">proxy_country wants UPPERCASE ISO codes - US not us <span>— Vectle</span></a>