diff options
author | Yang Tse <yangsita@gmail.com> | 2009-05-08 02:14:50 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-05-08 02:14:50 +0000 |
commit | c5c03ac5563961cbcbcb2a1cc3e8963d0c49e154 (patch) | |
tree | c013ab93163eb8640b52a0385b9d3a0c1706417b /tests/libtest/lib508.c | |
parent | 6ca321ca75c8f8ad6808bcfd786ad8e84c790aff (diff) | |
download | curl-c5c03ac5563961cbcbcb2a1cc3e8963d0c49e154.tar.gz |
Fixes for non-ASCII platforms by David McCreedy
Diffstat (limited to 'tests/libtest/lib508.c')
-rw-r--r-- | tests/libtest/lib508.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/libtest/lib508.c b/tests/libtest/lib508.c index a709b80be..6de7e7bcd 100644 --- a/tests/libtest/lib508.c +++ b/tests/libtest/lib508.c @@ -63,6 +63,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 + /* Set the expected POST size */ curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft); |