From c5c03ac5563961cbcbcb2a1cc3e8963d0c49e154 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 8 May 2009 02:14:50 +0000 Subject: Fixes for non-ASCII platforms by David McCreedy --- tests/libtest/lib510.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/libtest/lib510.c') diff --git a/tests/libtest/lib510.c b/tests/libtest/lib510.c index 43ead0936..c890f9d45 100644 --- a/tests/libtest/lib510.c +++ b/tests/libtest/lib510.c @@ -78,6 +78,11 @@ int test(char *URL) /* Now specify we want to POST data */ curl_easy_setopt(curl, CURLOPT_POST, 1L); +#ifdef CURL_DOES_CONVERSIONS + /* Convert the POST data to ASCII */ + curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, 1L); +#endif + /* we want to use our own read function */ curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); -- cgit v1.2.3