diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-26 18:17:32 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-05-26 18:17:32 +0300 |
commit | 3894027826cbc6688428d8d54e2debe25b1d0661 (patch) | |
tree | 69c3fa8140a365da5b138aa4519b154e2063c7b8 /src/testzzuf | |
parent | 710d79a2ea4647d73172ba9aa032a4055bea14a8 (diff) | |
download | libmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.tar.gz libmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.zip |
tests: properly setup CURL options
Diffstat (limited to 'src/testzzuf')
-rw-r--r-- | src/testzzuf/test_get.c | 12 | ||||
-rw-r--r-- | src/testzzuf/test_get_chunked.c | 12 | ||||
-rw-r--r-- | src/testzzuf/test_long_header.c | 8 | ||||
-rw-r--r-- | src/testzzuf/test_post.c | 12 | ||||
-rw-r--r-- | src/testzzuf/test_post_form.c | 12 | ||||
-rw-r--r-- | src/testzzuf/test_put.c | 12 | ||||
-rw-r--r-- | src/testzzuf/test_put_chunked.c | 12 | ||||
-rw-r--r-- | src/testzzuf/test_put_large.c | 12 |
8 files changed, 46 insertions, 46 deletions
diff --git a/src/testzzuf/test_get.c b/src/testzzuf/test_get.c index 223b85e5..08954226 100644 --- a/src/testzzuf/test_get.c +++ b/src/testzzuf/test_get.c | |||
@@ -117,7 +117,7 @@ testInternalGet () | |||
117 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 117 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
118 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 118 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
119 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 119 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
120 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 120 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
121 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 121 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
122 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 122 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
123 | if (oneone) | 123 | if (oneone) |
@@ -127,7 +127,7 @@ testInternalGet () | |||
127 | /* NOTE: use of CONNECTTIMEOUT without also | 127 | /* NOTE: use of CONNECTTIMEOUT without also |
128 | * setting NOSIGNAL results in really weird | 128 | * setting NOSIGNAL results in really weird |
129 | * crashes on my system! */ | 129 | * crashes on my system! */ |
130 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 130 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
131 | curl_easy_perform (c); | 131 | curl_easy_perform (c); |
132 | curl_easy_cleanup (c); | 132 | curl_easy_cleanup (c); |
133 | } | 133 | } |
@@ -161,7 +161,7 @@ testMultithreadedGet () | |||
161 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 161 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
162 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 162 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
163 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 163 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
164 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 164 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
165 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 165 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
166 | if (oneone) | 166 | if (oneone) |
167 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 167 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -171,7 +171,7 @@ testMultithreadedGet () | |||
171 | /* NOTE: use of CONNECTTIMEOUT without also | 171 | /* NOTE: use of CONNECTTIMEOUT without also |
172 | * setting NOSIGNAL results in really weird | 172 | * setting NOSIGNAL results in really weird |
173 | * crashes on my system! */ | 173 | * crashes on my system! */ |
174 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 174 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
175 | curl_easy_perform (c); | 175 | curl_easy_perform (c); |
176 | curl_easy_cleanup (c); | 176 | curl_easy_cleanup (c); |
177 | } | 177 | } |
@@ -222,7 +222,7 @@ testExternalGet () | |||
222 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 222 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
223 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 223 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
224 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 224 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
225 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 225 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
226 | if (oneone) | 226 | if (oneone) |
227 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 227 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
228 | else | 228 | else |
@@ -232,7 +232,7 @@ testExternalGet () | |||
232 | /* NOTE: use of CONNECTTIMEOUT without also | 232 | /* NOTE: use of CONNECTTIMEOUT without also |
233 | * setting NOSIGNAL results in really weird | 233 | * setting NOSIGNAL results in really weird |
234 | * crashes on my system! */ | 234 | * crashes on my system! */ |
235 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 235 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
236 | mret = curl_multi_add_handle (multi, c); | 236 | mret = curl_multi_add_handle (multi, c); |
237 | if (mret != CURLM_OK) | 237 | if (mret != CURLM_OK) |
238 | { | 238 | { |
diff --git a/src/testzzuf/test_get_chunked.c b/src/testzzuf/test_get_chunked.c index 44828853..2a16202b 100644 --- a/src/testzzuf/test_get_chunked.c +++ b/src/testzzuf/test_get_chunked.c | |||
@@ -156,14 +156,14 @@ testInternalGet () | |||
156 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 156 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
157 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 157 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
158 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 158 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
159 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 159 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
160 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 160 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
161 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 161 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
162 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 162 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
163 | /* NOTE: use of CONNECTTIMEOUT without also | 163 | /* NOTE: use of CONNECTTIMEOUT without also |
164 | * setting NOSIGNAL results in really weird | 164 | * setting NOSIGNAL results in really weird |
165 | * crashes on my system! */ | 165 | * crashes on my system! */ |
166 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 166 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
167 | curl_easy_perform (c); | 167 | curl_easy_perform (c); |
168 | curl_easy_cleanup (c); | 168 | curl_easy_cleanup (c); |
169 | } | 169 | } |
@@ -197,14 +197,14 @@ testMultithreadedGet () | |||
197 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 197 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
198 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 198 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
199 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 199 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
200 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 200 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
201 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 201 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
202 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 202 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
203 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 203 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
204 | /* NOTE: use of CONNECTTIMEOUT without also | 204 | /* NOTE: use of CONNECTTIMEOUT without also |
205 | * setting NOSIGNAL results in really weird | 205 | * setting NOSIGNAL results in really weird |
206 | * crashes on my system! */ | 206 | * crashes on my system! */ |
207 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 207 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
208 | curl_easy_perform (c); | 208 | curl_easy_perform (c); |
209 | curl_easy_cleanup (c); | 209 | curl_easy_cleanup (c); |
210 | } | 210 | } |
@@ -255,14 +255,14 @@ testExternalGet () | |||
255 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 255 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
256 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 256 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
257 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 257 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
258 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 258 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
259 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 259 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
260 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 260 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
261 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 261 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
262 | /* NOTE: use of CONNECTTIMEOUT without also | 262 | /* NOTE: use of CONNECTTIMEOUT without also |
263 | * setting NOSIGNAL results in really weird | 263 | * setting NOSIGNAL results in really weird |
264 | * crashes on my system! */ | 264 | * crashes on my system! */ |
265 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 265 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
266 | mret = curl_multi_add_handle (multi, c); | 266 | mret = curl_multi_add_handle (multi, c); |
267 | if (mret != CURLM_OK) | 267 | if (mret != CURLM_OK) |
268 | { | 268 | { |
diff --git a/src/testzzuf/test_long_header.c b/src/testzzuf/test_long_header.c index 63555d50..12a396bb 100644 --- a/src/testzzuf/test_long_header.c +++ b/src/testzzuf/test_long_header.c | |||
@@ -132,7 +132,7 @@ testLongUrlGet () | |||
132 | curl_easy_setopt (c, CURLOPT_URL, url); | 132 | curl_easy_setopt (c, CURLOPT_URL, url); |
133 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 133 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
134 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 134 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
135 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 135 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
136 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 136 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
137 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 137 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
138 | if (oneone) | 138 | if (oneone) |
@@ -142,7 +142,7 @@ testLongUrlGet () | |||
142 | /* NOTE: use of CONNECTTIMEOUT without also | 142 | /* NOTE: use of CONNECTTIMEOUT without also |
143 | * setting NOSIGNAL results in really weird | 143 | * setting NOSIGNAL results in really weird |
144 | * crashes on my system! */ | 144 | * crashes on my system! */ |
145 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 145 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
146 | curl_easy_perform (c); | 146 | curl_easy_perform (c); |
147 | curl_easy_cleanup (c); | 147 | curl_easy_cleanup (c); |
148 | free (url); | 148 | free (url); |
@@ -195,7 +195,7 @@ testLongHeaderGet () | |||
195 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); | 195 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
196 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 196 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
197 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 197 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
198 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 198 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
199 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 199 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
200 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 200 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
201 | if (oneone) | 201 | if (oneone) |
@@ -205,7 +205,7 @@ testLongHeaderGet () | |||
205 | /* NOTE: use of CONNECTTIMEOUT without also | 205 | /* NOTE: use of CONNECTTIMEOUT without also |
206 | * setting NOSIGNAL results in really weird | 206 | * setting NOSIGNAL results in really weird |
207 | * crashes on my system! */ | 207 | * crashes on my system! */ |
208 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 208 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
209 | curl_easy_perform (c); | 209 | curl_easy_perform (c); |
210 | curl_slist_free_all (header); | 210 | curl_slist_free_all (header); |
211 | header = NULL; | 211 | header = NULL; |
diff --git a/src/testzzuf/test_post.c b/src/testzzuf/test_post.c index 836f3395..03b8e5a8 100644 --- a/src/testzzuf/test_post.c +++ b/src/testzzuf/test_post.c | |||
@@ -179,7 +179,7 @@ testInternalPost () | |||
179 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 179 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
180 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 180 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
181 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 181 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
182 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 182 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
183 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 183 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
184 | if (oneone) | 184 | if (oneone) |
185 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 185 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -189,7 +189,7 @@ testInternalPost () | |||
189 | /* NOTE: use of CONNECTTIMEOUT without also | 189 | /* NOTE: use of CONNECTTIMEOUT without also |
190 | * setting NOSIGNAL results in really weird | 190 | * setting NOSIGNAL results in really weird |
191 | * crashes on my system! */ | 191 | * crashes on my system! */ |
192 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 192 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
193 | curl_easy_perform (c); | 193 | curl_easy_perform (c); |
194 | curl_easy_cleanup (c); | 194 | curl_easy_cleanup (c); |
195 | } | 195 | } |
@@ -231,7 +231,7 @@ testMultithreadedPost () | |||
231 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 231 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
232 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 232 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
233 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 233 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
234 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 234 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
235 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 235 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
236 | if (oneone) | 236 | if (oneone) |
237 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 237 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -241,7 +241,7 @@ testMultithreadedPost () | |||
241 | /* NOTE: use of CONNECTTIMEOUT without also | 241 | /* NOTE: use of CONNECTTIMEOUT without also |
242 | * setting NOSIGNAL results in really weird | 242 | * setting NOSIGNAL results in really weird |
243 | * crashes on my system! */ | 243 | * crashes on my system! */ |
244 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 244 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
245 | curl_easy_perform (c); | 245 | curl_easy_perform (c); |
246 | curl_easy_cleanup (c); | 246 | curl_easy_cleanup (c); |
247 | } | 247 | } |
@@ -301,7 +301,7 @@ testExternalPost () | |||
301 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 301 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
302 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); | 302 | curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); |
303 | curl_easy_setopt (c, CURLOPT_POST, 1L); | 303 | curl_easy_setopt (c, CURLOPT_POST, 1L); |
304 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 304 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
305 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 305 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
306 | if (oneone) | 306 | if (oneone) |
307 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 307 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -311,7 +311,7 @@ testExternalPost () | |||
311 | /* NOTE: use of CONNECTTIMEOUT without also | 311 | /* NOTE: use of CONNECTTIMEOUT without also |
312 | * setting NOSIGNAL results in really weird | 312 | * setting NOSIGNAL results in really weird |
313 | * crashes on my system! */ | 313 | * crashes on my system! */ |
314 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 314 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
315 | 315 | ||
316 | 316 | ||
317 | mret = curl_multi_add_handle (multi, c); | 317 | mret = curl_multi_add_handle (multi, c); |
diff --git a/src/testzzuf/test_post_form.c b/src/testzzuf/test_post_form.c index 571c9d99..cbe55b5d 100644 --- a/src/testzzuf/test_post_form.c +++ b/src/testzzuf/test_post_form.c | |||
@@ -196,7 +196,7 @@ testInternalPost () | |||
196 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 196 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
197 | pd = make_form (); | 197 | pd = make_form (); |
198 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); | 198 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); |
199 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 199 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
200 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 200 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
201 | if (oneone) | 201 | if (oneone) |
202 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 202 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -206,7 +206,7 @@ testInternalPost () | |||
206 | /* NOTE: use of CONNECTTIMEOUT without also | 206 | /* NOTE: use of CONNECTTIMEOUT without also |
207 | * setting NOSIGNAL results in really weird | 207 | * setting NOSIGNAL results in really weird |
208 | * crashes on my system! */ | 208 | * crashes on my system! */ |
209 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 209 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
210 | curl_easy_perform (c); | 210 | curl_easy_perform (c); |
211 | curl_easy_cleanup (c); | 211 | curl_easy_cleanup (c); |
212 | curl_formfree (pd); | 212 | curl_formfree (pd); |
@@ -247,7 +247,7 @@ testMultithreadedPost () | |||
247 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 247 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
248 | pd = make_form (); | 248 | pd = make_form (); |
249 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); | 249 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); |
250 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 250 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
251 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 251 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
252 | if (oneone) | 252 | if (oneone) |
253 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 253 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -257,7 +257,7 @@ testMultithreadedPost () | |||
257 | /* NOTE: use of CONNECTTIMEOUT without also | 257 | /* NOTE: use of CONNECTTIMEOUT without also |
258 | * setting NOSIGNAL results in really weird | 258 | * setting NOSIGNAL results in really weird |
259 | * crashes on my system! */ | 259 | * crashes on my system! */ |
260 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 260 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
261 | curl_easy_perform (c); | 261 | curl_easy_perform (c); |
262 | curl_easy_cleanup (c); | 262 | curl_easy_cleanup (c); |
263 | curl_formfree (pd); | 263 | curl_formfree (pd); |
@@ -315,7 +315,7 @@ testExternalPost () | |||
315 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 315 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
316 | pd = make_form (); | 316 | pd = make_form (); |
317 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); | 317 | curl_easy_setopt (c, CURLOPT_HTTPPOST, pd); |
318 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 318 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
319 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 319 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
320 | if (oneone) | 320 | if (oneone) |
321 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 321 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -325,7 +325,7 @@ testExternalPost () | |||
325 | /* NOTE: use of CONNECTTIMEOUT without also | 325 | /* NOTE: use of CONNECTTIMEOUT without also |
326 | * setting NOSIGNAL results in really weird | 326 | * setting NOSIGNAL results in really weird |
327 | * crashes on my system! */ | 327 | * crashes on my system! */ |
328 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 328 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
329 | 329 | ||
330 | mret = curl_multi_add_handle (multi, c); | 330 | mret = curl_multi_add_handle (multi, c); |
331 | if (mret != CURLM_OK) | 331 | if (mret != CURLM_OK) |
diff --git a/src/testzzuf/test_put.c b/src/testzzuf/test_put.c index 63518ba8..5a237ddd 100644 --- a/src/testzzuf/test_put.c +++ b/src/testzzuf/test_put.c | |||
@@ -146,7 +146,7 @@ testInternalPut () | |||
146 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 146 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
147 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 147 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
148 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 148 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
149 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 149 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
150 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 150 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
151 | if (oneone) | 151 | if (oneone) |
152 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 152 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -156,7 +156,7 @@ testInternalPut () | |||
156 | /* NOTE: use of CONNECTTIMEOUT without also | 156 | /* NOTE: use of CONNECTTIMEOUT without also |
157 | * setting NOSIGNAL results in really weird | 157 | * setting NOSIGNAL results in really weird |
158 | * crashes on my system! */ | 158 | * crashes on my system! */ |
159 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 159 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
160 | curl_easy_perform (c); | 160 | curl_easy_perform (c); |
161 | curl_easy_cleanup (c); | 161 | curl_easy_cleanup (c); |
162 | } | 162 | } |
@@ -197,7 +197,7 @@ testMultithreadedPut () | |||
197 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 197 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
198 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 198 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
199 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 199 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
200 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 200 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
201 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 201 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
202 | if (oneone) | 202 | if (oneone) |
203 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 203 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -207,7 +207,7 @@ testMultithreadedPut () | |||
207 | /* NOTE: use of CONNECTTIMEOUT without also | 207 | /* NOTE: use of CONNECTTIMEOUT without also |
208 | * setting NOSIGNAL results in really weird | 208 | * setting NOSIGNAL results in really weird |
209 | * crashes on my system! */ | 209 | * crashes on my system! */ |
210 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 210 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
211 | curl_easy_perform (c); | 211 | curl_easy_perform (c); |
212 | curl_easy_cleanup (c); | 212 | curl_easy_cleanup (c); |
213 | } | 213 | } |
@@ -266,7 +266,7 @@ testExternalPut () | |||
266 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 266 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
267 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 267 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
268 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 268 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
269 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 269 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
270 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 270 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
271 | if (oneone) | 271 | if (oneone) |
272 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 272 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -276,7 +276,7 @@ testExternalPut () | |||
276 | /* NOTE: use of CONNECTTIMEOUT without also | 276 | /* NOTE: use of CONNECTTIMEOUT without also |
277 | * setting NOSIGNAL results in really weird | 277 | * setting NOSIGNAL results in really weird |
278 | * crashes on my system! */ | 278 | * crashes on my system! */ |
279 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 279 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
280 | 280 | ||
281 | 281 | ||
282 | 282 | ||
diff --git a/src/testzzuf/test_put_chunked.c b/src/testzzuf/test_put_chunked.c index 642e968a..d016d84e 100644 --- a/src/testzzuf/test_put_chunked.c +++ b/src/testzzuf/test_put_chunked.c | |||
@@ -155,14 +155,14 @@ testInternalPut () | |||
155 | /* | 155 | /* |
156 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 156 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
157 | */ | 157 | */ |
158 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 158 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
159 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 159 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
160 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 160 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
161 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 161 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
162 | /* NOTE: use of CONNECTTIMEOUT without also | 162 | /* NOTE: use of CONNECTTIMEOUT without also |
163 | * setting NOSIGNAL results in really weird | 163 | * setting NOSIGNAL results in really weird |
164 | * crashes on my system! */ | 164 | * crashes on my system! */ |
165 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 165 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
166 | curl_easy_perform (c); | 166 | curl_easy_perform (c); |
167 | curl_easy_cleanup (c); | 167 | curl_easy_cleanup (c); |
168 | } | 168 | } |
@@ -202,14 +202,14 @@ testMultithreadedPut () | |||
202 | /* | 202 | /* |
203 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 203 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
204 | */ | 204 | */ |
205 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 205 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
206 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); | 206 | curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); |
207 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 207 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
208 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 15L); | 208 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 15L); |
209 | /* NOTE: use of CONNECTTIMEOUT without also | 209 | /* NOTE: use of CONNECTTIMEOUT without also |
210 | * setting NOSIGNAL results in really weird | 210 | * setting NOSIGNAL results in really weird |
211 | * crashes on my system! */ | 211 | * crashes on my system! */ |
212 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 212 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
213 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 213 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
214 | { | 214 | { |
215 | fprintf (stderr, | 215 | fprintf (stderr, |
@@ -281,14 +281,14 @@ testExternalPut () | |||
281 | /* | 281 | /* |
282 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); | 282 | curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); |
283 | */ | 283 | */ |
284 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 284 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
285 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 285 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
286 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 286 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
287 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); | 287 | curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); |
288 | /* NOTE: use of CONNECTTIMEOUT without also | 288 | /* NOTE: use of CONNECTTIMEOUT without also |
289 | * setting NOSIGNAL results in really weird | 289 | * setting NOSIGNAL results in really weird |
290 | * crashes on my system! */ | 290 | * crashes on my system! */ |
291 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 291 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
292 | 292 | ||
293 | 293 | ||
294 | mret = curl_multi_add_handle (multi, c); | 294 | mret = curl_multi_add_handle (multi, c); |
diff --git a/src/testzzuf/test_put_large.c b/src/testzzuf/test_put_large.c index 40861b87..815ce77d 100644 --- a/src/testzzuf/test_put_large.c +++ b/src/testzzuf/test_put_large.c | |||
@@ -161,7 +161,7 @@ testInternalPut () | |||
161 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 161 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
162 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 162 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
163 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); | 163 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); |
164 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 164 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
165 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 165 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
166 | if (oneone) | 166 | if (oneone) |
167 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 167 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -171,7 +171,7 @@ testInternalPut () | |||
171 | /* NOTE: use of CONNECTTIMEOUT without also | 171 | /* NOTE: use of CONNECTTIMEOUT without also |
172 | * setting NOSIGNAL results in really weird | 172 | * setting NOSIGNAL results in really weird |
173 | * crashes on my system! */ | 173 | * crashes on my system! */ |
174 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 174 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
175 | curl_easy_perform (c); | 175 | curl_easy_perform (c); |
176 | curl_easy_cleanup (c); | 176 | curl_easy_cleanup (c); |
177 | } | 177 | } |
@@ -213,7 +213,7 @@ testMultithreadedPut () | |||
213 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 213 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
214 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 214 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
215 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); | 215 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); |
216 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 216 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
217 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 217 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
218 | if (oneone) | 218 | if (oneone) |
219 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 219 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -223,7 +223,7 @@ testMultithreadedPut () | |||
223 | /* NOTE: use of CONNECTTIMEOUT without also | 223 | /* NOTE: use of CONNECTTIMEOUT without also |
224 | * setting NOSIGNAL results in really weird | 224 | * setting NOSIGNAL results in really weird |
225 | * crashes on my system! */ | 225 | * crashes on my system! */ |
226 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 226 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
227 | curl_easy_perform (c); | 227 | curl_easy_perform (c); |
228 | curl_easy_cleanup (c); | 228 | curl_easy_cleanup (c); |
229 | } | 229 | } |
@@ -284,7 +284,7 @@ testExternalPut () | |||
284 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); | 284 | curl_easy_setopt (c, CURLOPT_READDATA, &pos); |
285 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); | 285 | curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); |
286 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); | 286 | curl_easy_setopt (c, CURLOPT_INFILESIZE, (long) PUT_SIZE); |
287 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 287 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
288 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); | 288 | curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); |
289 | if (oneone) | 289 | if (oneone) |
290 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 290 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
@@ -294,7 +294,7 @@ testExternalPut () | |||
294 | /* NOTE: use of CONNECTTIMEOUT without also | 294 | /* NOTE: use of CONNECTTIMEOUT without also |
295 | * setting NOSIGNAL results in really weird | 295 | * setting NOSIGNAL results in really weird |
296 | * crashes on my system! */ | 296 | * crashes on my system! */ |
297 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 297 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
298 | 298 | ||
299 | 299 | ||
300 | 300 | ||