{
 "recorded_at": "2026-10-10T12:43:17Z",
 "python": "3.14.4",
 "platform": "Linux-7.0.0-30-generic-x86_64-with-glibc2.43",
 "probe": "import json\n\nimport curl_cffi\nfrom curl_cffi import requests\nfrom curl_cffi.requests.exceptions import ConnectionError, ProxyError\n\nrow = {\"curl_cffi\": curl_cffi.__version__, \"libcurl\": curl_cffi.__curl_version__.split()[0]}\nfor name, url, proxy in [\n    (\"connect_407\", \"https://127.0.0.1:8443/\", \"http://127.0.0.1:8888\"),\n    (\"socks_failure\", \"http://127.0.0.1:8080/\", \"socks5://127.0.0.1:1081\"),\n]:\n    try:\n        requests.get(url, proxy=proxy)\n        row[name] = {\"exception\": None}\n    except Exception as error:\n        kind = type(error)\n        row[name] = {\n            \"exception\": f\"{kind.__module__}.{kind.__qualname__}\",\n            \"message\": str(error),\n            \"code\": None if getattr(error, \"code\", None) is None else int(error.code),\n            \"is_ProxyError\": isinstance(error, ProxyError),\n            \"is_ConnectionError\": isinstance(error, ConnectionError),\n        }\nprint(json.dumps(row))\n",
 "versions": [
  {
   "curl_cffi": "0.16.3",
   "libcurl": "libcurl/8.21.0-IMPERSONATE",
   "connect_407": {
    "exception": "curl_cffi.requests.exceptions.ConnectionError",
    "message": "Failed to perform, curl: (7) CONNECT tunnel failed, response 407. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 7,
    "is_ProxyError": false,
    "is_ConnectionError": true
   },
   "socks_failure": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (97) cannot complete SOCKS5 connection to 127.0.0.1. (1). See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 97,
    "is_ProxyError": true,
    "is_ConnectionError": false
   }
  },
  {
   "curl_cffi": "0.16.2",
   "libcurl": "libcurl/8.21.0-IMPERSONATE",
   "connect_407": {
    "exception": "curl_cffi.requests.exceptions.ConnectionError",
    "message": "Failed to perform, curl: (7) CONNECT tunnel failed, response 407. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 7,
    "is_ProxyError": false,
    "is_ConnectionError": true
   },
   "socks_failure": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (97) cannot complete SOCKS5 connection to 127.0.0.1. (1). See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 97,
    "is_ProxyError": true,
    "is_ConnectionError": false
   }
  },
  {
   "curl_cffi": "0.16.1",
   "libcurl": "libcurl/8.21.0-IMPERSONATE",
   "connect_407": {
    "exception": "curl_cffi.requests.exceptions.ConnectionError",
    "message": "Failed to perform, curl: (7) CONNECT tunnel failed, response 407. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 7,
    "is_ProxyError": false,
    "is_ConnectionError": true
   },
   "socks_failure": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (97) cannot complete SOCKS5 connection to 127.0.0.1. (1). See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 97,
    "is_ProxyError": true,
    "is_ConnectionError": false
   }
  },
  {
   "curl_cffi": "0.16.0",
   "libcurl": "libcurl/8.21.0-IMPERSONATE",
   "connect_407": {
    "exception": "curl_cffi.requests.exceptions.ConnectionError",
    "message": "Failed to perform, curl: (7) CONNECT tunnel failed, response 407. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 7,
    "is_ProxyError": false,
    "is_ConnectionError": true
   },
   "socks_failure": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (97) cannot complete SOCKS5 connection to 127.0.0.1. (1). See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 97,
    "is_ProxyError": true,
    "is_ConnectionError": false
   }
  },
  {
   "curl_cffi": "0.15.0",
   "libcurl": "libcurl/8.15.0-IMPERSONATE",
   "connect_407": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (56) CONNECT tunnel failed, response 407. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 56,
    "is_ProxyError": true,
    "is_ConnectionError": false
   },
   "socks_failure": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (97) cannot complete SOCKS5 connection to 127.0.0.1. (1). See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 97,
    "is_ProxyError": true,
    "is_ConnectionError": false
   }
  },
  {
   "curl_cffi": "0.14.0",
   "libcurl": "libcurl/8.15.0-IMPERSONATE",
   "connect_407": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (56) CONNECT tunnel failed, response 407. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 56,
    "is_ProxyError": true,
    "is_ConnectionError": false
   },
   "socks_failure": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (97) cannot complete SOCKS5 connection to 127.0.0.1. (1). See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 97,
    "is_ProxyError": true,
    "is_ConnectionError": false
   }
  },
  {
   "curl_cffi": "0.13.0",
   "libcurl": "libcurl/8.15.0-IMPERSONATE",
   "connect_407": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (56) CONNECT tunnel failed, response 407. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 56,
    "is_ProxyError": true,
    "is_ConnectionError": false
   },
   "socks_failure": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (97) cannot complete SOCKS5 connection to 127.0.0.1. (1). See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 97,
    "is_ProxyError": true,
    "is_ConnectionError": false
   }
  },
  {
   "curl_cffi": "0.12.0",
   "libcurl": "libcurl/8.14.1-IMPERSONATE",
   "connect_407": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (56) CONNECT tunnel failed, response 407. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 56,
    "is_ProxyError": true,
    "is_ConnectionError": false
   },
   "socks_failure": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (97) cannot complete SOCKS5 connection to 127.0.0.1. (1). See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 97,
    "is_ProxyError": true,
    "is_ConnectionError": false
   }
  },
  {
   "curl_cffi": "0.11.4",
   "libcurl": "libcurl/8.13.0-IMPERSONATE",
   "connect_407": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (56) CONNECT tunnel failed, response 407. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 56,
    "is_ProxyError": true,
    "is_ConnectionError": false
   },
   "socks_failure": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (97) cannot complete SOCKS5 connection to 127.0.0.1. (1). See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 97,
    "is_ProxyError": true,
    "is_ConnectionError": false
   }
  },
  {
   "curl_cffi": "0.10.0",
   "libcurl": "libcurl/8.7.0-DEV",
   "connect_407": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (56) CONNECT tunnel failed, response 407. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 56,
    "is_ProxyError": true,
    "is_ConnectionError": false
   },
   "socks_failure": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (97) Can't complete SOCKS5 connection to 127.0.0.1. (1). See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 97,
    "is_ProxyError": true,
    "is_ConnectionError": false
   }
  },
  {
   "curl_cffi": "0.9.0",
   "libcurl": "libcurl/8.7.0-DEV",
   "connect_407": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (56) CONNECT tunnel failed, response 407. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 56,
    "is_ProxyError": true,
    "is_ConnectionError": false
   },
   "socks_failure": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (97) Can't complete SOCKS5 connection to 127.0.0.1. (1). See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 97,
    "is_ProxyError": true,
    "is_ConnectionError": false
   }
  },
  {
   "curl_cffi": "0.7.4",
   "libcurl": "libcurl/8.7.0-DEV",
   "connect_407": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (56) CONNECT tunnel failed, response 407. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 56,
    "is_ProxyError": true,
    "is_ConnectionError": false
   },
   "socks_failure": {
    "exception": "curl_cffi.requests.exceptions.ProxyError",
    "message": "Failed to perform, curl: (97) Can't complete SOCKS5 connection to 127.0.0.1. (1). See https://curl.se/libcurl/c/libcurl-errors.html first for more details.",
    "code": 97,
    "is_ProxyError": true,
    "is_ConnectionError": false
   }
  }
 ]
}
