Skip to content

cURL

Basic Usage

Terminal window
curl -x http://connect.trueproxies.com:8080 \
-U "your_username:your_password" \
https://httpbin.org/ip

Country Targeting

Use the username parameter to target a specific country:

Terminal window
curl -x http://connect.trueproxies.com:8080 \
-U "your_username-country-us:your_password" \
https://httpbin.org/ip

Sticky Sessions

Keep the same IP across multiple requests:

Terminal window
curl -x http://connect.trueproxies.com:8080 \
-U "your_username-session-abc123:your_password" \
https://httpbin.org/ip

Common Options

Terminal window
# Follow redirects
curl -L -x http://connect.trueproxies.com:8080 \
-U "your_username:your_password" \
https://example.com
# Set timeout (30 seconds)
curl --max-time 30 -x http://connect.trueproxies.com:8080 \
-U "your_username:your_password" \
https://httpbin.org/ip
# Save response to file
curl -o response.json -x http://connect.trueproxies.com:8080 \
-U "your_username:your_password" \
https://httpbin.org/ip
# Verbose output for debugging
curl -v -x http://connect.trueproxies.com:8080 \
-U "your_username:your_password" \
https://httpbin.org/ip

Environment Variables

Set proxy globally for all cURL requests in your shell:

Terminal window
export http_proxy="http://your_username:your_password@connect.trueproxies.com:8080"
export https_proxy="http://your_username:your_password@connect.trueproxies.com:8080"
# Now all cURL requests use the proxy
curl https://httpbin.org/ip