Back to Integrations
Developer Guide 7 Min Read

Using Turbo Proxy with cURL Command Line

Quick-start cURL commands for routing HTTP, HTTPS, and SOCKS5 requests through Turbo Proxy directly from your terminal — no code required.

cURL Command Line Proxy Request Mockup

cURL and Proxy Testing

cURL is the universal command-line HTTP client — pre-installed on macOS, Linux, and Windows 10+. It is the fastest way to test proxy connectivity, verify your IP rotation, debug API requests, and validate proxy credentials without writing any code.

cURL supports HTTP, HTTPS, SOCKS4, and SOCKS5 proxies natively with full authentication support via simple command-line flags.


Prerequisites

  • cURL: version 7.21.7 or later (for SOCKS5 support)
  • Proxy Gateway: gate.turboproxy.online
  • Port: e.g., 7000
  • Username / Password: From your Turbo Proxy dashboard

Check your cURL version: curl --version


Command Examples

Basic HTTP Proxy

curl -x http://gate.turboproxy.online:7000 \
     -U your_username:your_password \
     https://api.ipify.org?format=json

SOCKS5 Proxy (Recommended)

curl --socks5 gate.turboproxy.online:7000 \
     -U your_username:your_password \
     https://api.ipify.org?format=json

SOCKS5 with Remote DNS (Avoid DNS Leaks)

curl --socks5-hostname gate.turboproxy.online:7000 \
     -U your_username:your_password \
     https://api.ipify.org?format=json

Proxy in URL Format (Inline Credentials)

curl -x "http://your_username:[email protected]:7000" \
     https://api.ipify.org?format=json

Test with Custom Headers (Mimic Browser)

curl --socks5-hostname gate.turboproxy.online:7000 \
     -U your_username:your_password \
     -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" \
     -H "Accept-Language: en-US,en;q=0.9" \
     https://example.com

Bash Loop for Rotation Testing

for i in {1..5}; do
  echo -n "Request $i: "
  curl -s --socks5-hostname gate.turboproxy.online:7000 \
       -U your_username:your_password \
       https://api.ipify.org?format=json
  echo
done

Set Proxy via Environment Variables

export http_proxy="http://your_username:[email protected]:7000"
export https_proxy="http://your_username:[email protected]:7000"

# Now all curl commands use the proxy automatically
curl https://api.ipify.org?format=json

Troubleshooting

1. "Could not resolve proxy" error

Make sure your DNS can resolve gate.turboproxy.online. Try nslookup gate.turboproxy.online to verify. If using SOCKS5, use --socks5-hostname to let the proxy handle DNS.

2. SSL certificate verify failed

Only for testing: add -k flag to skip SSL verification. Do not use in production. This is usually caused by an outdated CA bundle — update with brew upgrade curl (macOS) or your package manager.

Test Your Proxy Now

Get your Turbo Proxy credentials and run your first proxied cURL command in under 2 minutes.

Get Started Free