cURL / Mailing Lists / curl-users / Single Mail

curl-users

Bug or not ?

From: Olivier Rosello <orosello_at_mandriva.com>
Date: Thu, 25 Jun 2009 12:28:35 +0200

Hi Curl users,

I'm new to this mailing list.

I just subscribed because I noticed a curl behaviour which seems to me
weird :

=== Configuration ===
The computer got one local ipv4 and one ipv6 like :
192.168.1.104
2a01:e35:2f65:81f0:215:f2ff:fe4b:xxxx
(xxxx to protect privacy :) )

The router presents on Internet an ipv4 (82.246.88.xx) and the ipv6
listed above.

With Firefox, a site like http://www.myipv6.org/ displays both ips (v4
and v6).

My CURL :
$ curl -V
curl 7.19.4 (i586-mandriva-linux-gnu) libcurl/7.19.4 GnuTLS/2.6.4
zlib/1.2.3 c-ares/1.6.0 libidn/1.13 libssh2/1.0
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

=== Problem ===
Why when I do :
curl http://www.myipv6.org/

The page say "You are connected thru an ipv4, your ip is 82.246.88.xx"
(in French).

To use ipv6 with curl I must do :
curl -ipv6 http://www.myipv6.org/

(The page says the same as with Firefox)

When both are available, Curl should use ipv6 by default ?

Cheers,

Olivier

-- 
Mandriva
Olivier Rosello - Ingénieur Projets de Recherche
Mobile : +33 6 60 83 14 35
Tel : +33 9 77 19 66 88 / +33 950 733 755
Fax : +33 9 55 733 755
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-06-25