cURL / Mailing Lists / curl-users / Single Mail

curl-users

different behaviour of curl on GNU/Linux and MacOS X

From: Yaroslav Popovitch <yaroslav.popovitch_at_altiris.ee>
Date: Tue, 15 Aug 2006 12:45:51 +0100

Hello!
My web server is switched off.
I use curl to request some html page on SuSe 9.3 (ia32) and MacOS X
10.4.6 (ppc).
I am getting errors messages which come with different time intervals.
Examples:
On Linux (the same message all the time):
time ./curl http://172.18.2.32/index.html
curl: (7) couldn't connect to host

real 0m3.023s
user 0m0.004s
sys 0m0.003s

./curl --version
curl 7.14.0 (i686-pc-linux-gnu) libcurl/7.14.0 OpenSSL/0.9.7e
Protocols: ftp http file https ftps
Features: Largefile NTLM SSL

On MacOS (macdev2):
time ./curl http://172.18.2.32/index.html
curl: (7) couldn't connect to host

real 1m14.738s
user 0m0.018s
sys 0m0.026s

./curl --version
curl 7.15.4 (powerpc-apple-darwin8.6.0) libcurl/7.15.4 OpenSSL/0.9.7g
Protocols: tftp ftp http file https ftps
Features: Largefile NTLM SSL

Can someone explain the reason, why the behavior of curls is so
different?

NB! The behavior does not depend on version of curl.

Thx,
Yaroslav.
Received on 2006-08-15