cURL / Mailing Lists / curl-library / Single Mail

curl-library

IPv6 Support

From: keshav krity <keshavkrity_at_rediffmail.com>
Date: 10 Dec 2008 13:25:52 -0000

   Hi All, Does lib-curl support mixed addressing of the format that has IPv4 address embedded into the an IPv6 address. Example : 805B:2D9D:DC28::FC57:212.200.31.255 This is the sample code that I wrote #include <stdio.h> #include <curl/curl.h> int main(void) { CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "/*any mixed address*/"); curl_easy_setopt( curl, CURLOPT_VERBOSE, 1 ); res = curl_easy_perform(curl); /* always cleanup */ curl_easy_cleanup(curl); } return 0; } When I provide pure IPv6 address it works fine but when I try with mixed address as mentioned above I get the following *error.getaddrinfo(3) failed for IP: ... * Couldn't resolve host * Closing connection #0 * couldn't resolve host name Is there a problem in the way I am implementing or is mixed addressing not supported by lib-curl? Thanking you KeshavK
Received on 2008-12-10