aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib555.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-08 02:14:50 +0000
committerYang Tse <yangsita@gmail.com>2009-05-08 02:14:50 +0000
commitc5c03ac5563961cbcbcb2a1cc3e8963d0c49e154 (patch)
treec013ab93163eb8640b52a0385b9d3a0c1706417b /tests/libtest/lib555.c
parent6ca321ca75c8f8ad6808bcfd786ad8e84c790aff (diff)
Fixes for non-ASCII platforms by David McCreedy
Diffstat (limited to 'tests/libtest/lib555.c')
-rw-r--r--tests/libtest/lib555.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/libtest/lib555.c b/tests/libtest/lib555.c
index 33a1a26c7..0b9d27ae0 100644
--- a/tests/libtest/lib555.c
+++ b/tests/libtest/lib555.c
@@ -93,6 +93,10 @@ int test(char *URL)
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(UPLOADTHIS));
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_PROXY, libtest_arg2);
curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, libtest_arg3);
curl_easy_setopt(curl, CURLOPT_PROXYAUTH,
@@ -124,6 +128,9 @@ int test(char *URL)
mp_timedout = TRUE;
break;
}
+#ifdef TPF
+ sleep(1); /* avoid ctl-10 dump */
+#endif
if (running <= 0) {
fprintf(stderr, "nothing left running.\n");
break;