aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib553.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib553.c')
-rw-r--r--tests/libtest/lib553.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libtest/lib553.c b/tests/libtest/lib553.c
index 0a6fdcbdb..7af9e4e42 100644
--- a/tests/libtest/lib553.c
+++ b/tests/libtest/lib553.c
@@ -70,6 +70,10 @@ int test(char *URL)
curl_easy_setopt(curl, CURLOPT_URL, URL);
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
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
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)POSTLEN);
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
curl_easy_setopt(curl, CURLOPT_HEADER, 1L);