diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-04-06 22:10:44 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-04-06 22:17:04 +0300 |
commit | 58274f943df237ee608da8849969739c365dd664 (patch) | |
tree | 77e79e12a7971e899f2305f155014a1bff27b7df /src/testzzuf/test_post.c | |
parent | 8851d88e40a33bb942165c45d4e9d439038106a9 (diff) | |
download | libmicrohttpd-58274f943df237ee608da8849969739c365dd664.tar.gz libmicrohttpd-58274f943df237ee608da8849969739c365dd664.zip |
Used "127.0.0.1" instead of "localhost" in all tests to avoid accidental try by IPv6
Diffstat (limited to 'src/testzzuf/test_post.c')
-rw-r--r-- | src/testzzuf/test_post.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testzzuf/test_post.c b/src/testzzuf/test_post.c index d2c9ba85..b91de32b 100644 --- a/src/testzzuf/test_post.c +++ b/src/testzzuf/test_post.c | |||
@@ -169,7 +169,7 @@ testInternalPost () | |||
169 | fprintf (stderr, "."); | 169 | fprintf (stderr, "."); |
170 | 170 | ||
171 | c = curl_easy_init (); | 171 | c = curl_easy_init (); |
172 | curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); | 172 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
173 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 173 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
174 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 174 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
175 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 175 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
@@ -221,7 +221,7 @@ testMultithreadedPost () | |||
221 | fprintf (stderr, "."); | 221 | fprintf (stderr, "."); |
222 | 222 | ||
223 | c = curl_easy_init (); | 223 | c = curl_easy_init (); |
224 | curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); | 224 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
225 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 225 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
226 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 226 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
227 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 227 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |
@@ -291,7 +291,7 @@ testExternalPost () | |||
291 | 291 | ||
292 | 292 | ||
293 | c = curl_easy_init (); | 293 | c = curl_easy_init (); |
294 | curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1082/hello_world"); | 294 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1082/hello_world"); |
295 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 295 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
296 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 296 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
297 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); | 297 | curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); |