Wie kann ich Tor nutzen mit cURL (in Windows)?
Ich habe Vidalia installiert, eingerichtet Chrome zu verwenden, port 8118 für den proxy und ich habe meine Verbindung über https://check.torproject.org/ aber ich habe da Schwierigkeiten, diese Arbeit mit dem Kommandozeilen-tool cURL. Dies ist, was ich versuche:
C:\>curl -v --proxy localhost::9050 http://google.com
* About to connect() to proxy localhost port 0 (#0)
* Failed to connect to ↕: Address not available
* No error
* Trying 127.0.0.1... Failed to connect to 127.0.0.1: Address not available
* No error
* couldn't connect to host
* Closing connection #0
curl: (7) Failed to connect to ↕: Address not available
Gelöst:
curl -v --socks4a localhost:9050 http://check.torproject.org/
Du musst angemeldet sein, um einen Kommentar abzugeben.
Verwenden
--socks5
(zwei Striche).-socks5
ist kein Gültiger parameter für curl, also curl ist er es als einen Hostnamen ein.↕
ist eine seltsame hostname... etwas komisches ist passiert.Stellt sich heraus, das ganze Durcheinander war nur syntax-Probleme. Eine richtige Befehl ist hier:
Mit ZWEI Bindestrichen vor socks4a und EINEM Doppelpunkt vor der port.
Mehr aktualisiert response mit
socks5
.So, mit
port 9150
für Socken 5.