cURL / Mailing Lists / curl-users / Single Mail


Re: curl hangs at " to connect to any host

From: Martin Spliff <>
Date: Sun, 20 Oct 2013 22:31:03 +0200

> Does curl work to (i.e. no https)? Do other
> programs
> connect to port 443 just fine (e.g. wget, or even a web browser)? Is
> there
> a proxy in use on the system? If you've tried curl without
> --with-darwinssl
> then I would expect the results to be different, for example.
> >>> Dan

As I mentioned earlier: doesn't matter if it is http or https, the
result is the same - hang at "Trying". When I run in my OS X 10.7:

$ telnet 80
Connected to
Escape character is '^]'.

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

I was wondering if that could be timeout issue, but it seems that even
if I pass --connect-timeout parameter, cURL does not abort trying to
connect after 5 seconds

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

while wget works just OK.

$ wget
--2013-10-20 22:14:36--
Resolving, 2a00:1a28:1200:9::2
Connecting to||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11742 (11K) [text/html]
Saving to: `index.html.1'

cURL runned on Ubuntu on the same machine works just fine, so I guess
this is a problem with my OS X or my compilation of cURL. Is it possible
to be an interaction with other apps/libs on my OS X?

PS. I've skipped to another thread because of not changing e-mail
subject from the digest email - sorry for that. I'm switching back.

List admin:
Received on 2013-10-20