Integrations · Automation & scraping

Use HProxy with cURL.

Test an HProxy proxy from the command line before you wire it into anything.

cURL is the command-line HTTP client that ships on almost every system, the fastest way to confirm a proxy works.

Before debugging a scraper, prove the proxy itself is good. One cURL call through it, checking the IP it returns, separates a proxy problem from a code problem.

Setting up HProxy in cURL

  1. 1.Take your host, port and login from the dashboard.
  2. 2.Pass the proxy with -x and the login with -U.
  3. 3.Hit an IP-echo endpoint and confirm the address and country come back as expected.
curl -x res.hproxy.com:8080 \
  -U "user-country-us:pass" \
  https://ipinfo.io/json

Worth knowing

If this returns the right country but your tool does not, the problem is in the tool's config, not the proxy.

The host, port and login shown here are the format; your exact values are on your dashboard, ready to copy.

HProxy.

Ready when you are.Your dashboard is ten seconds away.

Get Startedor talk to us at support@hproxy.com
HProxy