Test a proxy connection with curl
Authentication, export, and DNS authentication via HTTP, HTTPS CONNECT, and SOCKS5 TCP minimum commands.
Maintained by the ZZHTTP engineering teamUpdated September 20, 2026
curl is suitable for building minimal, reproducible tests. The current valid configuration is obtained from the console and passed to the controlled terminal via environment variables.
HTTP/HTTPS Testing
curl --proxy 'http://us.zzhttp.com:7878' \
--proxy-user "$PROXY_USERNAME:$PROXY_PASSWORD" \
--connect-timeout 10 --max-time 30 \
'https://ipinfo.io/json'
SOCKS5 TCP testing
curl --proxy 'socks5h://us.zzhttp.com:7878' \
--proxy-user "$PROXY_USERNAME:$PROXY_PASSWORD" \
--connect-timeout 10 --max-time 30 \
'https://ipinfo.io/json'
Prepare
- Copy the full proxy username and sub-username and password from the console and inject them separately
PROXY_USERNAMEandPROXY_PASSWORD; Do not return values in the command history and CI logs. - Detection target returns JSON
ip,countryandregionFields. Areas are used for initial checks and third-party databases may be biased. - IPinfo open detection interface may limit flow. Received from target station
429The server is not able to resolve the problem.
HTTP and HTTPS
- When accessing HTTPS targets using an HTTP proxy, curl establishes a CONNECT tunnel.
- The request is not confirmed by the public network export field.
SOCKS5
- Domain Name Target Use
socks5hLet the proxy side resolve the DNS. - Tests only TCP requests.
Judgment
- Check DNS, TCP, 407, CONNECT, TLS, and target statuses in order.
- Desensitization information is stored, but no authentication header.
Did this answer your question?
Feedback is used only to improve the public documentation and does not submit accounts or request information.