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_form.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_form.c')
-rw-r--r-- | src/testzzuf/test_post_form.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testzzuf/test_post_form.c b/src/testzzuf/test_post_form.c index 647e31f2..dbf22b9c 100644 --- a/src/testzzuf/test_post_form.c +++ b/src/testzzuf/test_post_form.c | |||
@@ -187,7 +187,7 @@ testInternalPost () | |||
187 | { | 187 | { |
188 | fprintf (stderr, "."); | 188 | fprintf (stderr, "."); |
189 | c = curl_easy_init (); | 189 | c = curl_easy_init (); |
190 | curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); | 190 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
191 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 191 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
192 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 192 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
193 | pd = make_form (); | 193 | pd = make_form (); |
@@ -238,7 +238,7 @@ testMultithreadedPost () | |||
238 | { | 238 | { |
239 | fprintf (stderr, "."); | 239 | fprintf (stderr, "."); |
240 | c = curl_easy_init (); | 240 | c = curl_easy_init (); |
241 | curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11081/hello_world"); | 241 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11081/hello_world"); |
242 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 242 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
243 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 243 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
244 | pd = make_form (); | 244 | pd = make_form (); |
@@ -306,7 +306,7 @@ testExternalPost () | |||
306 | fprintf (stderr, "."); | 306 | fprintf (stderr, "."); |
307 | 307 | ||
308 | c = curl_easy_init (); | 308 | c = curl_easy_init (); |
309 | curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1082/hello_world"); | 309 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1082/hello_world"); |
310 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 310 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
311 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 311 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
312 | pd = make_form (); | 312 | pd = make_form (); |