PiratProxies

Automation and testing

Sending Charles Proxy traffic through a proxy

Charles is a debugging proxy for seeing what an app or site sends. It can pass traffic on through an external proxy, which lets you debug a session as it looks from another country.

The right proxy type for Charles Proxy

Any plan with the country you need.

The values to enter in Charles Proxy

Every PiratProxies plan comes down to four values: host, port, username and password. Here they are for Residential; your own username and password are on your plan page.

Hostresi.piratproxies.com
HTTP port8080
SOCKS5 port1080
UsernameUSERNAME
Passwordshown on your plan page

There is no separate country or session field: both are part of the username. Your plan page has a generator that writes it, and Targeting and sessions describes each piece.

Setting it up in Charles Proxy

  1. Open the Proxy menu and choose External Proxy Settings.
  2. Tick the option to use external proxy servers.
  3. Select the web proxy (HTTP) and the secure web proxy (HTTPS) and enter the host resi.piratproxies.com and port 8080 for each.
  4. Tick that the proxy requires a password and enter your username and password.

Menus move around between Charles Proxy versions, but the four values you enter never change.

Should Charles Proxy rotate IPs or keep one?

When Charles Proxy plays one visitor across several steps, a sticky session keeps the IP address unchanged from start to finish. When every run stands alone, drop the session and each run begins from a new address.

Here is what a sticky username looks like:

USERNAME-country-us-time-600-session-a1b2c3d4

When Charles Proxy will not connect

  • Fill in both the HTTP and HTTPS entries. With only the first, https traffic leaves directly from your own connection.
  • Error 407 means the login was refused. Copy the username and password from your plan page once more, and make sure no space crept in and the username was not cut short.
  • An IP in the wrong country nearly always comes from the username, since the country code lives there. Other fixes.

Charles Proxy and proxies: questions

Which PiratProxies plan suits Charles Proxy best?

Any plan with the country you need.

Words used in this guide: headless browser, rotating proxy, sticky session, proxy authentication.

Charles Proxy belongs to its own developers, and PiratProxies has no connection with them; we name it only to say what this guide covers. Follow the rules of the sites you visit and our acceptable use policy.