cURL / Mailing Lists / curl-users / Single Mail

curl-users

The tool, curl, can not work with protocol ftp with an IPv6 Link-Local address

From: Wang, Brandon <Brandon.Wang_at_chn.fujixerox.com>
Date: Wed, 18 Jan 2012 11:41:34 +0800

Hi, everybody,

I tried to use curl to visit an FTP server with an IPv6 Link-Local
address below.
  $curl ftp://test:123456@fe80::92fb:a6ff:fe0a:510b%eth0/ -v

It tells me the following error,
-------------------------------------------------------------------------------
* About to connect() to fe80::92fb:a6ff:fe0a:510b%eth1 port 21 (#0)
* Trying fe80::92fb:a6ff:fe0a:510b... connected
< 220 Welcome message
> USER test
< 331 Please specify the password.
> PASS 123456
< 230 Login successful.
> PWD
< 257 "/"
* Entry path is '/'
> EPSV
* Connect data stream passively
< 229 Entering Extended Passive Mode (|||30062|)
* Trying fe80::92fb:a6ff:fe0a:510b... Failed to connect to fe80::92fb:a6ff:fe0a:510b: Invalid argument
* Success
* couldn't connect to host
* got positive EPSV response, but can't connect. Disabling EPSV
> PASV
< 227 Entering Passive Mode (0,0,0,0,117,98)
* Trying 0.0.0.0... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
-------------------------------------------------------------------------------
Meanwhile, I tried to visit the server with the IPv6 Global address,
the visiting is successful.

I am very appreciated that you can help me resolve the problem
at your very convenience.

Thanks,

Best
Brandon
2012/01/18

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-19