curl-library
Re: HELP: how can i send POST by using IPv6 address?
Date: Wed, 1 Sep 2010 17:01:38 +0200 (CEST)
On Wed, 1 Sep 2010, xiusandake_at_yahoo.co.jp 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):
1. Stock Debian with default synch resolver:
$ curl -V
curl 7.21.1 (i486-pc-linux-gnu) libcurl/7.21.1 OpenSSL/0.9.8o zlib/1.2.3.4
libidn/1.18 libssh2/1.2.6
Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp
scp sftp smtp smtps telnet tftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
$ daniel_at_sture:~/src/curl$ curl
'http://\[3000:458:ff01:ff03:abcd:2e20:0:2\]:8080/'
curl: (7) Failed to connect to 3000:458:ff01:ff03:abcd:2e20:0:2: Network is
unreachable
2. Dev curl with threaded resolver:
$ ./src/curl -V
curl 7.21.2-DEV (i686-pc-linux-gnu) libcurl/7.21.2-DEV OpenSSL/0.9.8o
zlib/1.2.3.4 libidn/1.18 libssh2/1.2.8_DEV librtmp/2.2e
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3
pop3s rtmp rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS Debug TrackMemory IDN IPv6 Largefile NTLM SSL libz
$ ./src/curl 'http://\[3000:458:ff01:ff03:abcd:2e20:0:2\]:8080/'
curl: (7) Failed to connect to 3000:458:ff01:ff03:abcd:2e20:0:2: Network is
unreachable
3. Dev curl with c-ares resolver:
$ ./src/curl -V
curl 7.21.2-DEV (i686-pc-linux-gnu) libcurl/7.21.2-DEV OpenSSL/0.9.8o
zlib/1.2.3.4 c-ares/1.7.4-DEV libidn/1.18 libssh2/1.2.8_DEV librtmp/2.2e
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3
pop3s rtmp rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS Debug TrackMemory GSS-Negotiate IDN IPv6 Largefile NTLM
SSL libz
$ ./src/curl 'http://\[3000:458:ff01:ff03:abcd:2e20:0:2\]:8080/'
curl: (7) Failed to connect to 3000:458:ff01:ff03:abcd:2e20:0:2: Network is
unreachable
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-09-01