curl-library
HELP: how can i do POST with setting URL to " / "
Date: Thu, 29 Jul 2010 23:48:34 +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
as following format:
POST / HTTP/1.1
HOST: 192.168.1.2
Accept: ... ...
Content-type: ... ...
... ...
so i write a source code like this:
easy_set_opt(curl, URL, " / ");
curl_slist_append(slist, "HOST: 192.168.1.2");
... ...
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, slist);
curl_easy_perform(curl);
when i run this program, i got a error message like this:
fail to resolve URL "/"
if someone know something about this
please give me a help!
------------------
Best Regards!
From xiu
------------------
---------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-07-29