curl-library
unicode in CURLOPT_POST
From: Kublo Enter <kubaqw1_at_wp.pl>
Date: Thu, 19 Apr 2012 18:48:35 +0200
Date: Thu, 19 Apr 2012 18:48:35 +0200
Hello
my problem is that when I trying to send data to the server witch option CURLOPT_POSTFIELDS I fail it.
I'm trying to do it in such a way:
const wchar_t *datapost=L"some=abc";
curl_easy_setopt(curl, CURLOPT_POSTFIELDS,datapost);
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, size);
I do not know how I get size "datapost" and if I can in such a way to send data?
With const char * I do not have any problems.
Thanks in advance.
Kuba.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-19