Zum Inhalt springen
Guides 1 Min. Lesezeit 898 Aufrufe

Verwenden von Proxys mit cURL

Verwendung von Proxys in der Kommandozeile mit cURL: HTTP, SOCKS, Authentifizierung und Beispiele.

cURL CLI
Verwenden von Proxys mit cURL

Proxys mit cURL verwenden

cURL ist ein leistungsstarkes Befehlszeilen-Dienstprogramm für HTTP. Es unterstützt hervorragend alle Proxy-Typen.

Grundlegende Syntax

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

HTTP-Proxy

# Einfache Anfrage über Proxy
curl -x http://proxy.example.com:8080 https://httpbin.org/ip

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

# Oder separat
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 über Proxy)
curl --socks4a proxy.example.com:1080 https://httpbin.org/ip

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

# SOCKS5 mit DNS über Proxy (empfohlen)
curl --socks5-hostname proxy.example.com:1080 https://httpbin.org/ip

Umgebungsvariablen

# Proxy global setzen
export http_proxy=http://proxy.example.com:8080
export https_proxy=http://proxy.example.com:8080

# Jetzt gehen alle Anfragen über den Proxy
curl https://httpbin.org/ip

# Proxy für bestimmte Hosts ignorieren
export no_proxy=localhost,127.0.0.1,.internal.com

Nützliche Optionen

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

# SSL-Fehler ignorieren
curl -x http://proxy:8080 -k https://example.com

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

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

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

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

Skript zur Proxy-Listenprüfung

#!/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

# Ausführliche Ausgabe
curl -x http://proxy:8080 -v https://httpbin.org/ip

# Nur Header anzeigen
curl -x http://proxy:8080 -I https://httpbin.org/ip
Aktualisiert: 09.01.2026
Zurück zur Kategorie

Lesen Sie auch

Guides 2 Min.

Proxy für Nike SNKRS: Limitierte Drops ergattern & mehrere Teilnahmen sichern

Nutze Residential- oder Mobile-Proxies für Nike SNKRS, um mit mehreren Accounts an Draws teilzunehmen, IP-Limits zu umgehen und limitierte Drops ohne Bans zu coppen. Welcher Typ zu wählen ist und wie man das Setup einrichtet.

Guides 2 Min.

So richten Sie einen Proxy auf dem iPhone ein (WLAN & SOCKS5)

Richten Sie einen Proxy auf dem iPhone über die nativen Wi-Fi-Einstellungen (HTTP/HTTPS) oder eine Proxy-App wie Shadowrocket für SOCKS5 und Mobilfunkabdeckung ein. Schritt-für-Schritt-iOS-Setup und die zu beachtenden Einschränkungen.

Guides 3 Min.

Proxy für Tinder: Mehrere Accounts & Sperren vermeiden

Nutze Mobile- oder Residential-Proxies für Tinder, um mehrere Profile zu betreiben und IP-Shadowbans zu vermeiden. Warum Mobile gewinnt, wie man es einrichtet und warum ein Proxy allein nicht deinen Standort ändert.

Guides 2 Min.

Proxy für StockX: Preise überwachen & Accounts verwalten

Nutzen Sie Residential-, ISP- oder Mobile-Proxys für StockX, um Preise zu überwachen, mehrere Accounts zu verwalten und Drops ohne Bans zu coppen. Hier erfahren Sie, welchen Typ Sie wählen sollten und wie Sie GProxy einrichten.

Guides 3 Min.

Proxy für OpenAI API: Zugriff, Rate Limits & Setup

Leite die OpenAI API über einen Residential- oder ISP-Proxy (GProxy +) weiter, um auf unterstützte Regionen zuzugreifen, 429-Rate-Limits zu umgehen und Accounts zu isolieren. Welcher Proxy zu verwenden ist, plus Python-Setup-Beispiele.

Guides 1 Min.

Einrichten eines Proxys in Cypress für E2E-Tests

Einrichten eines Proxys in Cypress: HTTP_PROXY-Variablen, cy-proxy-middleware und das Testen standortabhängiger Inhalte.

Testen Sie unsere Proxys

20.000+ Proxys in über 100 Ländern weltweit

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