cURL / Mailing Lists / curl-users / Single Mail


curl hangs at " to connect to any host

From: Martin Spliff <>
Date: Sun, 20 Oct 2013 03:01:06 +0200


I've got a problem with cURL. It hangs when "Trying" to connect:

$ curl -v
* About to connect() to port 443 (#0)
* Trying

no matter is it https or http.

$ curl -v
* About to connect() to port 80 (#0)
* Trying

it works allright for the localhost:

$ curl -v http://localhost
* About to connect() to localhost port 80 (#0)
* Trying connected
* Connected to localhost ( port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.21.4 (x86_64-apple-darwin11.4.0) libcurl/7.21.4
OpenSSL/0.9.8r zlib/1.2.5
> Host: localhost
> Accept: */*

My setup is:
$ curl -V
curl 7.21.4 (x86_64-apple-darwin11.4.0) libcurl/7.21.4 OpenSSL/0.9.8r
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps
pop3 pop3s rtsp smtp smtps telnet tftp
Features: IPv6 Largefile NTLM SSL libz

But I have tried also with other versions compiled on my machine (OS X
10.7). If that is not a cURL problem, then what are directions to find a
source of the problem?

List admin:
Received on 2013-10-20