Python

Use the requests library (or httpx) with an HTTP proxy URL for your Proxy Charm workspace.

Setup

  1. Copy credentials from the dashboard

    Sign in to Proxy Charm and open Proxies. Copy the host, port, username, and password for your workspace.

  2. Set proxies on the session

    Example with requests:

    import requests
    
    proxies = {
        "http": "http://USERNAME:PASSWORD@zephyr.proxy.rlwy.net:15112",
        "https": "http://USERNAME:PASSWORD@zephyr.proxy.rlwy.net:15112",
    }
    
    response = requests.get("https://api.ipify.org", proxies=proxies, timeout=30)
    print(response.text)
  3. Check the printed IP

    It should match the exit shown in the dashboard for that username.