cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: <xiusandake_at_yahoo.co.jp>
Date: Wed, 1 Sep 2010 22:21:26 +0900 (JST)

dear all:
 
thank you for reading this mail~
 
i need to create a http client for sending a http request to a http server
  by using ipv6 address like following format:
 
POST / HTTP/1.1
HOST: 3000:458:ff01:ff03:abcd:2e20:0:2
  Accept: ... ...
Content-type: ... ...
... ...
 
so i write a source code like this:
  (PS: my http client's ipaddress is "3000:458:ff01:ff03:abcd:2e20:0:1" )
 
easy_set_opt(curl, CURLOPT_URL,
  "http://[3000:458:ff01:ff03:abcd:2e20:0:2]:8080/");
... ...
... ...
curl_easy_perform(curl);
  when i run this program, i got a error message like this:
 
couldn't resolve host '3000:458:ff01:ff03:abcd:2e20:0:2'
   
if someone know something about this
please give me a help!
 
------------------
Best Regards!
 
From xiu
------------------
 

 
---------------------------------
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-01