Menu

#970 curl: (7) Failed to connect to 0.0.0.10: Invalid argument

closed-invalid
libcurl (356)
5
2013-06-21
2010-10-19
No

Howdy,

This problem seems to have appeared recently and only seems to appear when adding the -c option.

Here's my current curl information:

curl -V
curl 7.21.3-DEV (i686-pc-linux-gnu) libcurl/7.21.3-DEV OpenSSL/1.0.0 zlib/1.2.3 libidn/1.9
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: Debug TrackMemory IDN IPv6 Largefile NTLM SSL libz

No error message appears:

shooter bash-4.0 /tools/curl# curl -m 10 --retry 9999999 --retry-delay 0 ftp.x.org
-rw-r--r-- 1 ftp ftp 3075 Oct 7 1998 GettingBroadway
-rw-r--r-- 1 ftp ftp 3075 Oct 7 1998 GettingR6.3
-rw-r--r-- 1 ftp ftp 1847 Feb 1 1999 GettingR6.4

Error msg appears:

shooter bash-4.0 /tools/curl# curl -c -m 10 --retry 9999999 --retry-delay 0 ftp.x.org
curl: (7) Failed to connect to 0.0.0.10: Invalid argument
-rw-r--r-- 1 ftp ftp 3075 Oct 7 1998 GettingBroadway
-rw-r--r-- 1 ftp ftp 3075 Oct 7 1998 GettingR6.3
-rw-r--r-- 1 ftp ftp 1847 Feb 1 1999 GettingR6.4

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2010-10-19
    • status: open --> open-invalid
     
  • Daniel Stenberg

    Daniel Stenberg - 2010-10-19

    -c takes another parameter (as file name to store cookies in) which you say is '-m'. The following paremeter is then '10' which curl then considers to be 0.0.0.10 which isn't a really good IP.

    Possibly curl should reject such a "silly" IP address, but it is being very liberal in what it accepts on purpose.

     
  • Daniel Stenberg

    Daniel Stenberg - 2010-10-23
    • status: open-invalid --> pending-invalid
     
  • George R. Goffe

    George R. Goffe - 2010-10-25

    Howdy,

    Oops. I must apologize. This is all my fault. I've been having some serious networking problems and have had to use "-c" in wget and goofed by using "-c" instead of '-C' for curl.

    Sorry to have bothered you with this one.

    Regards and THANKS for your response.

    George...

     
  • George R. Goffe

    George R. Goffe - 2010-10-25
    • status: pending-invalid --> open-invalid
     
  • Daniel Stenberg

    Daniel Stenberg - 2010-10-25
    • status: open-invalid --> closed-invalid