cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 19 Jan 2012 21:57:41 -0800

On Fri, Jan 20, 2012 at 10:02:30AM +0800, Wang, Brandon wrote:
> > Try this instead:
> > curl -g 'ftp://test:123456@[fe80::92fb:a6ff:fe0a:510b%251]/' -v
> > replacing the final '1' with the correct index.
> I tried it as your instructions. Unfortunately, it doesn't work.
> I confirmed that the number of interface is 1. It got the following
> logs.
>
> * getaddrinfo(3) failed for [fe80::92fb:a6ff:fe0a:510b%251]:21
> * Couldn't resolve host '[fe80::92fb:a6ff:fe0a:510b%251]'
> * Closing connection #0
> curl: (6) Couldn't resolve host '[fe80::92fb:a6ff:fe0a:510b%251]'

Interesting--it looks like a URL parsing bug in curl. It doesn't seem
to like a username along with an IPv6 literal address. Try this instead:

   curl -g -u test:123456 'ftp://[fe80::92fb:a6ff:fe0a:510b%251]/' -v

>>> Dan
-------------------------------------------------------------------
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-20