cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl+ipv6

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Mon, 14 Jul 2003 15:11:16 +0200

"usha" <ushaa_at_lycos.co.uk> said:

> Have anyone encountered this problem, that the curl (version-7.10.2) fails with ipv6:
> # ./curl ftp://fe80::230:6eff:fe48:94f1 -u root
> password:
> curl: (7) socket error: 239

I think you must say "./curl ftp://[fe80::230:6eff:fe48:94f1] -u root" .
That's the syntax of IPv6 literal addresses in RFC-2732.
Without the brackets, the first colon will confuse the url-parser.
E.g. with a user-name:
  ftp://user[1080::900:10.0.0.1] (the password is optional)
and with both user/passwd:
  ftp://user:passwd@[1080::900:10.0.0.1]

--gv

-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
Received on 2003-07-14