cURL
DocscURL

cURL

Referencia rápida para usar RaxyProxy desde la línea de comandos con cURL.

Uso básico

# HTTP proxy — rotating
curl -x http://USERNAME:PASSWORD@proxy.raxyproxy.com:823 \
     https://httpbin.org/ip

# Short form
curl --proxy http://USERNAME:PASSWORD@proxy.raxyproxy.com:823 \
     https://httpbin.org/ip

SOCKS5

curl --socks5-hostname proxy.raxyproxy.com:824 \
     -U USERNAME:PASSWORD \
     https://httpbin.org/ip

Geo-Targeting

# Country — US only (free)
curl -x "http://USERNAME__cr.us:PASSWORD@proxy.raxyproxy.com:823" \
     https://httpbin.org/ip

# Multiple countries
curl -x "http://USERNAME__cr.us,gb,de:PASSWORD@proxy.raxyproxy.com:823" \
     https://httpbin.org/ip

# Exclude countries
curl -x "http://USERNAME__nocr.cn,ru:PASSWORD@proxy.raxyproxy.com:823" \
     https://httpbin.org/ip

# State (2× billing for residential/mobile/datacenter)
curl -x "http://USERNAME__cr.us;state.california:PASSWORD@proxy.raxyproxy.com:823" \
     https://httpbin.org/ip

# City
curl -x "http://USERNAME__cr.us;city.losangeles:PASSWORD@proxy.raxyproxy.com:823" \
     https://httpbin.org/ip

# ZIP code
curl -x "http://USERNAME__cr.us;zip.90001:PASSWORD@proxy.raxyproxy.com:823" \
     https://httpbin.org/ip

# ASN (numeric only — no AS prefix)
curl -x "http://USERNAME__cr.us;asn.15169:PASSWORD@proxy.raxyproxy.com:823" \
     https://httpbin.org/ip

Sesiones sticky

# Port-based sticky — same IP per port
curl -x http://USERNAME:PASSWORD@proxy.raxyproxy.com:10001 \
     https://httpbin.org/ip

# sessid sticky — same IP for ~30 min
curl -x "http://USERNAME__sessid.my-session-1:PASSWORD@proxy.raxyproxy.com:823" \
     https://httpbin.org/ip

# Custom TTL — keep IP for 60 minutes
curl -x "http://USERNAME__sessid.my-session-1;sessttl.60:PASSWORD@proxy.raxyproxy.com:823" \
     https://httpbin.org/ip

Solicitudes POST

curl -x http://USERNAME:PASSWORD@proxy.raxyproxy.com:823 \
     -X POST \
     -H "Content-Type: application/json" \
     -d '{"key": "value"}' \
     https://httpbin.org/post

Flags útiles

FlagPropósito
-x / --proxyEstablecer URL del proxy
-U / --proxy-userCredenciales del proxy (user:pass)
--socks5-hostnameProxy SOCKS5 (resuelve nombres de host de forma remota)
-k / --insecureOmitir verificación TLS (solo para desarrollo)
--max-timeTiempo de espera total en segundos
--connect-timeoutTiempo de espera de conexión en segundos
-A / --user-agentEstablecer encabezado User-Agent
-HAgregar encabezado personalizado
-v / --verboseMostrar detalles de conexión (útil para depuración)
-w "%{http_code}"Imprimir código de estado HTTP