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: Wang, Brandon <Brandon.Wang_at_chn.fujixerox.com>
Date: Sat, 21 Jan 2012 11:43:53 +0800

Great!

> 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
It works well.
Thank you very much!

//Brandon

> -----Original Message-----
> From: Wang, Brandon
> Sent: 2012年1月20日 10:03
> To: 'curl-users_at_cool.haxx.se'
> Cc: Wang, Brandon
> Subject: RE: The tool, curl, can not work with protocol ftp with an IPv6 Link-Local
> address
>
> Thank you for your reply.
>
> > 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]'
>
> //Brandon

-------------------------------------------------------------------
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-21