diff options
Diffstat (limited to 'src/testcurl/test_post_loop.c')
-rw-r--r-- | src/testcurl/test_post_loop.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcurl/test_post_loop.c b/src/testcurl/test_post_loop.c index 6edaced1..6da54a95 100644 --- a/src/testcurl/test_post_loop.c +++ b/src/testcurl/test_post_loop.c | |||
@@ -162,7 +162,7 @@ testInternalPost () | |||
162 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 162 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
163 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 163 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
164 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 164 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
165 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 165 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
166 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 166 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
167 | if (oneone) | 167 | if (oneone) |
168 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 168 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -172,7 +172,7 @@ testInternalPost () | |||
172 | /* NOTE: use of CONNECTTIMEOUT without also | 172 | /* NOTE: use of CONNECTTIMEOUT without also |
173 | * setting NOSIGNAL results in really weird | 173 | * setting NOSIGNAL results in really weird |
174 | * crashes on my system! */ | 174 | * crashes on my system! */ |
175 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 175 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
176 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 176 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
177 | { | 177 | { |
178 | fprintf (stderr, | 178 | fprintf (stderr, |
@@ -250,7 +250,7 @@ testMultithreadedPost () | |||
250 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 250 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
251 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 251 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
252 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 252 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
253 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 253 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
254 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 254 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
255 | if (oneone) | 255 | if (oneone) |
256 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 256 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -260,7 +260,7 @@ testMultithreadedPost () | |||
260 | /* NOTE: use of CONNECTTIMEOUT without also | 260 | /* NOTE: use of CONNECTTIMEOUT without also |
261 | * setting NOSIGNAL results in really weird | 261 | * setting NOSIGNAL results in really weird |
262 | * crashes on my system! */ | 262 | * crashes on my system! */ |
263 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 263 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
264 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 264 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
265 | { | 265 | { |
266 | fprintf (stderr, | 266 | fprintf (stderr, |
@@ -337,7 +337,7 @@ testMultithreadedPoolPost () | |||
337 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 337 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
338 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 338 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
339 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 339 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
340 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 340 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
341 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 341 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
342 | if (oneone) | 342 | if (oneone) |
343 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 343 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -347,7 +347,7 @@ testMultithreadedPoolPost () | |||
347 | /* NOTE: use of CONNECTTIMEOUT without also | 347 | /* NOTE: use of CONNECTTIMEOUT without also |
348 | * setting NOSIGNAL results in really weird | 348 | * setting NOSIGNAL results in really weird |
349 | * crashes on my system! */ | 349 | * crashes on my system! */ |
350 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 350 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
351 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 351 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
352 | { | 352 | { |
353 | fprintf (stderr, | 353 | fprintf (stderr, |
@@ -447,7 +447,7 @@ testExternalPost () | |||
447 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 447 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
448 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 448 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
449 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 449 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
450 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 450 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
451 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 451 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
452 | if (oneone) | 452 | if (oneone) |
453 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 453 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -457,7 +457,7 @@ testExternalPost () | |||
457 | /* NOTE: use of CONNECTTIMEOUT without also | 457 | /* NOTE: use of CONNECTTIMEOUT without also |
458 | * setting NOSIGNAL results in really weird | 458 | * setting NOSIGNAL results in really weird |
459 | * crashes on my system! */ | 459 | * crashes on my system! */ |
460 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 460 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
461 | mret = curl_multi_add_handle (multi, c); | 461 | mret = curl_multi_add_handle (multi, c); |
462 | if (mret != CURLM_OK) | 462 | if (mret != CURLM_OK) |
463 | { | 463 | { |