İçeriğe geç
Guides 1 dk okuma 895 görüntülenme

Using Proxies with cURL

How to use proxies in command line with cURL utility: HTTP, SOCKS, authentication and examples.

cURL CLI
Using Proxies with cURL

Using Proxies with cURL

cURL is a powerful command-line utility for HTTP. It excellently supports all proxy types.

Basic Syntax

curl -x [protocol://]host:port URL

HTTP Proxy

# Simple request through proxy
curl -x http://proxy.example.com:8080 https://httpbin.org/ip

# With authentication
curl -x http://user:[email protected]:8080 https://httpbin.org/ip

# Or separately
curl -x http://proxy.example.com:8080 -U user:password https://httpbin.org/ip

HTTPS Proxy

curl -x https://proxy.example.com:8080 https://httpbin.org/ip

SOCKS Proxy

# SOCKS4
curl --socks4 proxy.example.com:1080 https://httpbin.org/ip

# SOCKS4A (DNS through proxy)
curl --socks4a proxy.example.com:1080 https://httpbin.org/ip

# SOCKS5
curl --socks5 proxy.example.com:1080 https://httpbin.org/ip

# SOCKS5 with DNS through proxy (recommended)
curl --socks5-hostname proxy.example.com:1080 https://httpbin.org/ip

Environment Variables

# Set proxy globally
export http_proxy=http://proxy.example.com:8080
export https_proxy=http://proxy.example.com:8080

# Now all requests go through proxy
curl https://httpbin.org/ip

# Ignore proxy for certain hosts
export no_proxy=localhost,127.0.0.1,.internal.com

Useful Options

# Show connection time
curl -x http://proxy:8080 -w "Time: %{time_total}s\n" https://httpbin.org/ip

# Ignore SSL errors
curl -x http://proxy:8080 -k https://example.com

# Set timeout
curl -x http://proxy:8080 --connect-timeout 10 https://httpbin.org/ip

# Follow redirects
curl -x http://proxy:8080 -L https://httpbin.org/redirect/3

# Save cookies
curl -x http://proxy:8080 -c cookies.txt https://example.com

# Send POST request
curl -x http://proxy:8080 -X POST -d "data=value" https://httpbin.org/post

Proxy List Check Script

#!/bin/bash
while read proxy; do
    result=$(curl -x "$proxy" -s --connect-timeout 5 https://httpbin.org/ip)
    if [ $? -eq 0 ]; then
        echo "[OK] $proxy"
    else
        echo "[FAIL] $proxy"
    fi
done < proxies.txt

Debugging

# Verbose output
curl -x http://proxy:8080 -v https://httpbin.org/ip

# Show only headers
curl -x http://proxy:8080 -I https://httpbin.org/ip
Güncellendi: 09.01.2026
Kategoriye dön

Bunları da okuyun

Guides 2 dk

Nike SNKRS için Proxy: Sınırlı Sürümler ve Çoklu Katılım

Nike SNKRS'ta birden fazla hesapla çekilişlere katılmak, IP limitlerini aşmak ve ban yemeden sınırlı sürümleri kapmak için residential veya mobil proxy kullanın. Hangi türü seçmeli ve nasıl kurmalı.

Guides 2 dk

iPhone'da Proxy Nasıl Kurulur (Wi-Fi ve SOCKS5)

iPhone'da proxy'yi yerleşik Wi-Fi ayarlarından (HTTP/HTTPS) veya SOCKS5 ile hücresel kapsama için Shadowrocket gibi bir uygulamayla kurun. Adım adım iOS kurulumu ve bilinmesi gereken kısıtlar.

Guides 3 dk

Tinder için proxy: çoklu hesap ve ban'lerden kaçınma

Birden fazla profil işletmek ve IP shadowban'lerinden kaçınmak için Tinder'da mobil veya residential proxy kullanın. Mobilin neden kazandığı, kurulumu ve proxy'nin şehri neden değiştirmediği.

Guides 2 dk

StockX için proxy: fiyat takibi ve hesap yönetimi

StockX'te fiyatları izlemek, birden fazla hesap çalıştırmak ve drop'ları yasaklanmadan kapmak için residential, ISP veya mobil proxy kullanın. Hangi türü seçeceğinizi ve nasıl kuracağınızı anlatıyoruz.

Guides 3 dk

OpenAI API için Proxy: Erişim, Hız Limitleri ve Kurulum

OpenAI API'yi residential veya ISP proxy üzerinden yönlendirerek desteklenen bölgelere erişin, 429 hız limitlerinden kaçının ve hesapları izole edin. Hangi proxy'yi seçmeli ve Python kurulum örnekleri.

Guides 1 dk

E2E testleri için Cypress'te proxy kurulumu

Cypress'te proxy kurulumu: HTTP_PROXY değişkenleri, cy-proxy-middleware ve coğrafi konuma bağlı içeriğin test edilmesi.

Proxy'lerimizi deneyin

100+ ülkede 20,000+ proxy

support_agent
GProxy Support
Usually replies within minutes
Hi there!
Send us a message and we'll reply as soon as possible.