aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib552.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib552.c')
-rw-r--r--tests/libtest/lib552.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/libtest/lib552.c b/tests/libtest/lib552.c
index ff2b8c986..ce7ca1676 100644
--- a/tests/libtest/lib552.c
+++ b/tests/libtest/lib552.c
@@ -169,6 +169,11 @@ int test(char *URL)
/* Post */
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
+
/* Setup read callback */
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long) sizeof(databuf));
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);