{
  "started": "2026-10-29T06:34:16Z",
  "ended": "2026-10-29T06:34:21Z",
  "platform": "Windows curl; not a Linux runtime test",
  "curl": "curl 8.13.0 (Windows) libcurl/8.13.0 Schannel zlib/1.3.1 WinIDN",
  "method": "Two loopback HTTP responders distinguish proxy and direct paths; no upstream forwarding, DNS service or TLS",
  "records": [
    {
      "case": "ALL_PROXY-remote",
      "round": 1,
      "environment": {
        "ALL_PROXY": "socks5h://127.0.0.1:58844"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "http://localhost:58845/probe"
      ],
      "returncode": 0,
      "stdout": "PROXY_PATH",
      "stderr": "",
      "events": [
        {
          "atyp": 3,
          "host": "localhost",
          "port": 58845
        }
      ]
    },
    {
      "case": "ALL_PROXY-remote",
      "round": 2,
      "environment": {
        "ALL_PROXY": "socks5h://127.0.0.1:58844"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "http://localhost:58845/probe"
      ],
      "returncode": 0,
      "stdout": "PROXY_PATH",
      "stderr": "",
      "events": [
        {
          "atyp": 3,
          "host": "localhost",
          "port": 58845
        }
      ]
    },
    {
      "case": "ALL_PROXY-remote",
      "round": 3,
      "environment": {
        "ALL_PROXY": "socks5h://127.0.0.1:58844"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "http://localhost:58845/probe"
      ],
      "returncode": 0,
      "stdout": "PROXY_PATH",
      "stderr": "",
      "events": [
        {
          "atyp": 3,
          "host": "localhost",
          "port": 58845
        }
      ]
    },
    {
      "case": "all_proxy-local",
      "round": 1,
      "environment": {
        "all_proxy": "socks5://127.0.0.1:58844"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "http://localhost:58845/probe"
      ],
      "returncode": 0,
      "stdout": "PROXY_PATH",
      "stderr": "",
      "events": [
        {
          "atyp": 4,
          "host": "::1",
          "port": 58845
        }
      ]
    },
    {
      "case": "all_proxy-local",
      "round": 2,
      "environment": {
        "all_proxy": "socks5://127.0.0.1:58844"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "http://localhost:58845/probe"
      ],
      "returncode": 0,
      "stdout": "PROXY_PATH",
      "stderr": "",
      "events": [
        {
          "atyp": 4,
          "host": "::1",
          "port": 58845
        }
      ]
    },
    {
      "case": "all_proxy-local",
      "round": 3,
      "environment": {
        "all_proxy": "socks5://127.0.0.1:58844"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "http://localhost:58845/probe"
      ],
      "returncode": 0,
      "stdout": "PROXY_PATH",
      "stderr": "",
      "events": [
        {
          "atyp": 4,
          "host": "::1",
          "port": 58845
        }
      ]
    },
    {
      "case": "NO_PROXY-bypass",
      "round": 1,
      "environment": {
        "ALL_PROXY": "socks5h://127.0.0.1:58844",
        "NO_PROXY": "localhost"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "http://localhost:58845/probe"
      ],
      "returncode": 0,
      "stdout": "DIRECT_PATH",
      "stderr": "",
      "events": []
    },
    {
      "case": "NO_PROXY-bypass",
      "round": 2,
      "environment": {
        "ALL_PROXY": "socks5h://127.0.0.1:58844",
        "NO_PROXY": "localhost"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "http://localhost:58845/probe"
      ],
      "returncode": 0,
      "stdout": "DIRECT_PATH",
      "stderr": "",
      "events": []
    },
    {
      "case": "NO_PROXY-bypass",
      "round": 3,
      "environment": {
        "ALL_PROXY": "socks5h://127.0.0.1:58844",
        "NO_PROXY": "localhost"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "http://localhost:58845/probe"
      ],
      "returncode": 0,
      "stdout": "DIRECT_PATH",
      "stderr": "",
      "events": []
    },
    {
      "case": "explicit-override",
      "round": 1,
      "environment": {
        "ALL_PROXY": "http://127.0.0.1:58846"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "--proxy",
        "socks5h://127.0.0.1:58844",
        "http://localhost:58845/probe"
      ],
      "returncode": 0,
      "stdout": "PROXY_PATH",
      "stderr": "",
      "events": [
        {
          "atyp": 3,
          "host": "localhost",
          "port": 58845
        }
      ]
    },
    {
      "case": "explicit-override",
      "round": 2,
      "environment": {
        "ALL_PROXY": "http://127.0.0.1:58846"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "--proxy",
        "socks5h://127.0.0.1:58844",
        "http://localhost:58845/probe"
      ],
      "returncode": 0,
      "stdout": "PROXY_PATH",
      "stderr": "",
      "events": [
        {
          "atyp": 3,
          "host": "localhost",
          "port": 58845
        }
      ]
    },
    {
      "case": "explicit-override",
      "round": 3,
      "environment": {
        "ALL_PROXY": "http://127.0.0.1:58846"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "--proxy",
        "socks5h://127.0.0.1:58844",
        "http://localhost:58845/probe"
      ],
      "returncode": 0,
      "stdout": "PROXY_PATH",
      "stderr": "",
      "events": [
        {
          "atyp": 3,
          "host": "localhost",
          "port": 58845
        }
      ]
    },
    {
      "case": "http_proxy-priority",
      "round": 1,
      "environment": {
        "ALL_PROXY": "socks5h://127.0.0.1:58844",
        "http_proxy": "http://127.0.0.1:58846"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "http://localhost:58845/probe"
      ],
      "returncode": 28,
      "stdout": "",
      "stderr": "curl: (28) Connection timed out after 1011 milliseconds\n",
      "events": []
    },
    {
      "case": "http_proxy-priority",
      "round": 2,
      "environment": {
        "ALL_PROXY": "socks5h://127.0.0.1:58844",
        "http_proxy": "http://127.0.0.1:58846"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "http://localhost:58845/probe"
      ],
      "returncode": 28,
      "stdout": "",
      "stderr": "curl: (28) Connection timed out after 1005 milliseconds\n",
      "events": []
    },
    {
      "case": "http_proxy-priority",
      "round": 3,
      "environment": {
        "ALL_PROXY": "socks5h://127.0.0.1:58844",
        "http_proxy": "http://127.0.0.1:58846"
      },
      "argv": [
        "curl.exe",
        "-q",
        "--silent",
        "--show-error",
        "--connect-timeout",
        "1",
        "--max-time",
        "3",
        "http://localhost:58845/probe"
      ],
      "returncode": 28,
      "stdout": "",
      "stderr": "curl: (28) Connection timed out after 1008 milliseconds\n",
      "events": []
    }
  ]
}
