Proxy Tester



Examples:

  host:port                     -- considered HTTP
  host:port:user:pass           -- considered HTTP
  http://host:port:user:pass

  user:pass@host:port           -- considered HTTP
  http://user:pass@host:port

  socks5://host:port:user:pass
  socks5://host:port
  socks5://user:pass@host:port
  



API
    All tests are:

_test_http .............................. HTTP ipv4 get ip
_test_https ............................. HTTPS ipv4 get ip
_test_http_ipv6 ......................... HTTP ipv6 get ip
_test_https_ipv6 ........................ HTTPS ipv6 get ip
_test_udp_ip ............................ Get UDP IP from own service
_test_udp ............................... Test UDP by IP
_test_udp_name .......................... Test UDP by hostname
_test_dnsleak_TCP ....................... DNSleak by TCP
_test_dnsleak_UDP ....................... DNSleak by UDP
_test_p0fv4 ............................. P0F ipv4
_test_p0fv6 ............................. P0F ipv6
_test_ping_http ......................... Ping HTTP URL
_test_ping_https ........................ Ping HTTPS URL
_test_rtt2proxy ......................... RTT Proxy_Client - Proxy_Server


`PX` is a proxy line. Can be

  host:port                     -- considered HTTP
  host:port:user:pass           -- considered HTTP
  http://host:port:user:pass

  user:pass@host:port           -- considered HTTP
  http://user:pass@host:port

  socks5://host:port:user:pass
  socks5://host:port
  socks5://user:pass@host:port

Request:

1. PX - proxy to be tested
2. set of TESTS to be tested
3. X-Customer token.

```
curl https://proxytest.tanatos.org/testAPI  -d '{"PX":"socks5://host:port:user:pass", "TESTS": [  "_test_https", "_test_dnsleak_UDP" ] }'  --header "Content-Type: application/json"  --header  "X-Customer: customer999"
```

Response:

is an array of 2:
1. Associated array of test results.
2. Array of verbose messages.

```
[
  {
    "_test_dnsleak_UDP": {
      "TESTNAME": "DNSleak by UDP",
      "color": "green",
      "fullstatus": "OK 172.69.154.78 ( Cloudflare, Inc. ) , edns: NONE ; ",
      "shortstatus": "OK"
    },
    "_test_http": {
      "TESTNAME": "HTTP ipv4 get ip",
      "color": "green",
      "fullstatus": "37.214.61.108",
      "shortstatus": "OK"
    },
    "_test_https": {
      "TESTNAME": "HTTPS ipv4 get ip",
      "color": "green",
      "fullstatus": "37.214.61.108",
      "shortstatus": "OK"
    }
  },
  [
    "Testing proxy, socks5://localhost:4999"
  ]
]
```


    


(c) proxysmart.org