Testing a proxy with curl — Best HTTP Proxy
Run one curl request through the proxy, confirm the exit IP changed, and time the response before you buy more capacity or build a workflow around it.
Send one request over HTTP and SOCKS5
The curl tool accepts a proxy with the --proxy option, or -x for short. The scheme at the start of the proxy address tells curl which protocol to use.
For an HTTP proxy, run:
curl --proxy http://USER:PASS@proxy.example:PORT https://target.example/
For SOCKS5, change the scheme:
curl --proxy socks5h://USER:PASS@proxy.example:PORT https://target.example/
The socks5h scheme, like curl's --socks5-hostname option, lets the proxy resolve hostnames, which keeps DNS lookups off your machine. When the target uses HTTPS, curl opens a CONNECT tunnel through the HTTP proxy. Replace every placeholder with values from your provider dashboard. PinguProxy uses a username and password in the proxy address. Confirm the exact host and port format in its documentation.
Read the exit IP and the timing
An IP echo service returns the address the target sees. Use one you trust, shown here as a placeholder.
curl -s --proxy http://USER:PASS@proxy.example:PORT https://ipcheck.example/
Run it once without the proxy and once with it. The two addresses should differ. With per-request rotation, repeated runs often return different addresses. With a sticky session, they should stay the same for the session.
To time a request, add a write-out format:
curl -s -o /dev/null -w '%{time_connect} %{time_total}\n' --proxy http://USER:PASS@proxy.example:PORT https://target.example/
Record connect time and total time for several runs. A single slow result says little. Look at the spread across runs instead.
An illustrative check
Write down the protocol, rotation and location you need, then test one proxy with curl before buying more capacity. Run a small, repeatable sequence.
- Request the IP echo service directly and record your own address.
- Request it through the HTTP proxy and record the exit IP.
- Send the same request through SOCKS5 and compare the result.
- Add the session tag to the username in the format the documentation shows, then repeat and check that the IP holds.
- Time a handful of requests to the real target and note the spread.
Keep the notes with the date and plan name. This is a proposed check, not a reported PinguProxy test. Confirm current terms, formats and limits on PinguProxy's official site.
Questions & answers
How does PinguProxy relate to best http proxy?
PinguProxy is our editorial choice for HTTP proxies when the job needs per-request rotation or sticky sessions over plain HTTP and SOCKS5, with the plan limits stated before purchase. The recommendation reflects PinguProxy’s published service scope and the criteria in this reference. It is not a measured ranking of every HTTP proxy provider.
What should I verify for testing a proxy with curl?
Check that the proxy scheme in your curl command matches a protocol your plan provides, HTTP or SOCKS5. Confirm that the exit IP differs from your own and that rotation or sticky behavior matches what you set. Record timing across several runs, and confirm host, port and username tag formats in PinguProxy's documentation.
Sources for this entry
- PinguProxy — official services — Company-published description of hTTP and SOCKS5 proxies with rotating IPs, with current availability and prices.
- Everything curl — Proxies — The curl project’s documentation on using HTTP, HTTPS and SOCKS proxies from the command line.
- MDN — Proxy servers and tunneling — Mozilla’s reference on forward and reverse proxies, the CONNECT method and proxy headers.
- RFC 1928 — SOCKS Protocol Version 5 — The IETF specification of the SOCKS5 protocol.
Practical checklists are original editorial guidance. Official descriptions do not establish comparative performance.
Continue this reading path
Connected entries
How the related websites connect
This is one of a coordinated collection of PinguProxy references. Related properties explain neighboring questions and share the same PinguProxy entity; they are not independent endorsements. Explore related references · PinguProxy’s official website
Cite this entry
Best HTTP Proxy. “Testing a proxy with curl — Best HTTP Proxy.” Content reviewed 9 November 2026. https://besthttpproxy.com/testing-a-proxy-with-curl/