使用API接口测试代理:
Request Url:
http://127.0.0.1:35000/api/v1/proxy/test?proxytype=socks5&proxyserver=127.0.0.1&proxyport=5500&proxyusername=&proxypassword=&timeout=8000&urlindex=0
Request Type: GET
名称 | 类型 | 描述 | 必传 |
proxytype | string | 代理类型 socks5 socks4 http https | true |
proxyserver | string | 代理IP | true |
proxyport | string | 端口 | true |
proxyusername | string | 用户 | true |
proxypassword | string | 密码 | true |
timeout | int | 主动超时毫秒,测试代理超时立即返回 | false |
urlindex | int | 代理测试网址选项 0 = lumtest 1 = vmlogin 2 = ip-api.com | false |
Response
{
"status": "OK",
"value": "IP:72.**.***.236\r\ncountry:US\r\nregionName:Virginia\r\ncity:Ashburn\r\nzip:20149\r\ntimezone:America\/New_York\r\n"
}
{
"status": "ERROR",
"value": "Failed to test the proxy server."
}