curl-library
Curl 7.21.7 had problem to work.
Date: Mon, 10 Oct 2011 10:49:22 +0200
Dears,
I have a problem to use the libcurl on my system. I work on a Linux 2.4.26
with ARM architecture.
In console, when I type "curl www.google.com" for example, I obtain the
following return : curl: (7) Failed to connect to 74.125.77.99: Invalid
argument
with a verbose mode :
root_at_blackbox:/etc/init.d curl -v www.google.com
> * About to connect() to www.google.com port 80 (#0)
> * Trying 74.125.77.104... Failed to connect to 74.125.77.104: Invalid
> argument
> * Success
> * Trying 74.125.77.99... Failed to connect to 74.125.77.99: Invalid
> argument
> * Success
> * Trying 74.125.77.147... Failed to connect to 74.125.77.147: Invalid
> argument
> * Success
> * couldn't connect to host
> * Closing connection #0
> curl: (7) Failed to connect to 74.125.77.104: Invalid argument
>
I've also try to follow how curl works with an strace command and there I
can see that curl success to connect to google, but don't stop to retry.
Following an extract of the return from strace curl www.google.com command :
ecvfrom(3, "\363\231\201\200\0\1\0\4\0\0\0\0\3www\6google\3com\0\0"...,
> 1024, 0, {sa_family=AF_INET, sin_port=htons(53),
> sin_addr=inet_addr("8.8.8.8")}, [16]) = 100
> close(3) = 0
> socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
> connect(3, {sa_family=AF_INET, sin_port=htons(80),
> sin_addr=inet_addr("74.125.77.104")}, 16) = 0
> getsockname(3, {sa_family=AF_INET, sin_port=htons(1025),
> sin_addr=inet_addr("192.168.0.233")}, [16]) = 0
> close(3) = 0
> socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
> connect(3, {sa_family=AF_INET, sin_port=htons(80),
> sin_addr=inet_addr("74.125.77.99")}, 16) = 0
> getsockname(3, {sa_family=AF_INET, sin_port=htons(1025),
> sin_addr=inet_addr("192.168.0.233")}, [16]) = 0
> close(3) = 0
> socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
> connect(3, {sa_family=AF_INET, sin_port=htons(80),
> sin_addr=inet_addr("74.125.77.147")}, 16) = 0
> getsockname(3, {sa_family=AF_INET, sin_port=htons(1025),
> sin_addr=inet_addr("192.168.0.233")}, [16]) = 0
> close(3) = 0
> time([1318237027]) = 1318237027
> alarm(0) = 299
> rt_sigaction(SIGALRM, {SIG_DFL}, NULL, 8) = 0
> gettimeofday({1318237027, 420000}, NULL) = 0
> gettimeofday({1318237027, 420000}, NULL) = 0
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
> fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
> fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(80),
> sin_addr=inet_addr("74.125.77.104")}, 16) = -1 EINPROGRESS (Operation now in
> progress)
> gettimeofday({1318237027, 500000}, NULL) = 0
> getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
> close(3) = 0
> gettimeofday({1318237027, 500000}, NULL) = 0
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
> fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
> fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
> connect(3, {sa_family=AF_INET, sin_port=htons(80),
> sin_addr=inet_addr("74.125.77.99")}, 16) = -1 EINPROGRESS (Operation now in
> progress)
>
Somme one can help me?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-10