Separate the connection stages
Draw the client, proxy gateway, and destination before choosing a protocol. Reaching the gateway does not prove that the gateway can reach the destination. An HTTPS destination also does not mean that credentials sent to the proxy receive the same protection. A protocol name describes communication; it does not establish residential or mobile origin, or guarantee better performance.
An HTTP proxy can forward HTTP requests. For an HTTPS destination, curl normally sends CONNECT to the HTTP proxy, creates a tunnel, and then negotiates TLS with the destination through that tunnel. With normal certificate verification, this TLS connection protects the destination content. CONNECT itself is not TLS. The http or https scheme on the proxy address describes the connection to the proxy and must be considered separately from the destination scheme.
Check the SOCKS5 feature set
RFC 1928 defines CONNECT, BIND, and UDP ASSOCIATE, as well as authentication negotiation and address types. A service advertising SOCKS5 need not expose every command. In particular, do not assume UDP support. Verify the commands supported by the application, gateway, and upstream.
In curl, socks5 resolves the destination name locally, while socks5h sends the destination name to the proxy for resolution. The proxy's own hostname still needs client-side resolution. These choices can produce different destination addresses, so record the resolution mode during comparisons. SOCKS5 does not inherently guarantee encryption. The username/password negotiation in RFC 1929 carries the password in cleartext, which makes trusted transport and separate credentials important.
Run a small controlled comparison
- Confirm the supplied protocol, endpoint, port, and authentication method. Keep real passwords out of published examples.
- Use one HTTPS destination that you own or are explicitly authorized to test. Compare within the same time window, starting with a single request.
- Identify whether failure occurs during connection, authentication, tunnel setup, TLS, or the destination response before changing configuration.
These commands show parameter structure only. All example.test addresses are placeholders requiring configuration in your own test environment, not working HBridg endpoints. Supply authentication through controlled client configuration.
curl --proxy http://proxy.example.test:8080 --connect-timeout 5 --max-time 15 https://target.example.test/health
curl --proxy socks5h://proxy.example.test:1080 --connect-timeout 5 --max-time 15 https://target.example.test/health
Keep the decision bounded
For HTTPS APIs, start with a method verified by both client and supplier. For other application protocols, establish the specific SOCKS5 capabilities first. Do not disable certificate verification to hide errors, or interpret one success as sustained availability. Confirm HBridg's operational endpoints and protocols with the operator; this guide does not promise UDP, every upstream feature, or active routing from a saved configuration draft.
Sources
This original educational article draws topic organization from Proxyway Guides, without reusing scores or test samples. Protocol facts come from RFC 1928, RFC 1929 section 3, curl HTTP proxies, and curl SOCKS resolution.