cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HELP: how can i send POST by using IPv6 address?

From: Daniel Egger <daniel_at_eggers-club.de>
Date: Wed, 1 Sep 2010 18:03:33 +0200

On 01.09.2010, at 17:01, Daniel Stenberg wrote:

>> easy_set_opt(curl, CURLOPT_URL,
>> "http://[3000:458:ff01:ff03:abcd:2e20:0:2]:8080/");
>
>> couldn't resolve host '3000:458:ff01:ff03:abcd:2e20:0:2'
>
> What libcurl version is this and which resolver are you using?
> I just tried this (I don't have a working ipv6 networking setup, only an ipv6 config):

Even if you had a working setup, the mentioned host is not reachable. ;)

curl 7.21.1 (x86_64-apple-darwin10.4.0) libcurl/7.21.1 OpenSSL/1.0.0a zlib/1.2.5 libidn/1.19
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM SSL libz

# curl 'http://\[3000:458:ff01:ff03:abcd:2e20:0:2\]:8080/'
curl: (7) couldn't connect to host

curl 7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.10
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

$ curl 'http://\[3000:458:ff01:ff03:abcd:2e20:0:2\]:8080/'
curl: (28) connect() timed out!

Servus,
      Daniel

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-09-01