cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: <xiusandake_at_yahoo.co.jp>
Date: Thu, 9 Sep 2010 10:02:23 +0900 (JST)

>You have not told us which curl version you use. Call
>'curl --version' and be sure that you call the right curl
>binary. Sometimes people have a curl installation from
>their distribution and a self compiled one.
>
>
>The output must contain "IPv6".

  my environment is: Vxworks 6.6 including the "curl" component
   
  i can't use 'curl --version' command at the vxworks target machine right now
   
  so i printf the curl_versioninfo() like bellow:
   
  libcurl: 7.15.3 (int)features: 20 .
   
  my net environment is:
  eg.
  http_client(use curllib) <---------> http_server(win2008 server with DNS server)
  v4:192.168.1.1 <--http v4 and dns v4 request/reply ok--> 192.168.1.2
  v6:2000::1 <----------NG-----------> 2000::2
                                                  DNS config: www.xxx.com ip: 2000::2 typ:AAAA
   
  if use "2000::2" as URL, curl will return "couldn't resolve host 2000::2"
  if use www.xxx.com as URL, curl will send a IPv4 DNS query message to DNS server
  like: From:2000::1 TO:20002 query host: www.xxx.com type:A
  so DNS server reply a NULL address.
   
  so i tried to curl_set_opt(curl,CURLOPT_IPRESOLVE,CURL_IPRESOLVE_V6 )
  then it return "couldn't resolve host www.xxx.com" and do not send a DNS query
  message out~
   
   
 

 
---------------------------------
GyaO! - Anime, Dramas, Movies, and Music videos [FREE]

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