cURL / Mailing Lists / curl-users / Single Mail

curl-users

RFC-2732 address

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Mon, 3 Nov 2003 20:54:03 +0100

curl.exe http://[ff:fe::10.0.0.1]/
curl: (3) [globbing] illegal pattern or range specification after pos 9

The syntax is legal AFAICS according to RFC-2732 and libcurl
seems to support it. But not curl itself. It seems it tries to glob
an IPv6 address, not the file part.

With 'curl.exe -g http://[ff:fe::10.0.0.1]/' kinda works; it skips the
globbing and tries to resolve the address !?

20:43:41.448619 IP 10.0.0.6.1026 > 217.13.4.24.53: 1123+ A? ff:fe::10.0.0.1.broadpark.no. (46)
20:43:41.481132 IP 217.13.4.24.53 > 10.0.0.6.1026: 1123 NXDomain* 0/0/0 (46)

I don't have the IPv6 stack installed at the moment, so getnameinfo()
would probably have failed. But libcurl seems to blame too by calling
gethostbyname() on the address. Doesn't seem right.

--gv

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
Received on 2003-11-03