aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/daemontest_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/daemontest_get.c')
-rw-r--r--src/testcurl/daemontest_get.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testcurl/daemontest_get.c b/src/testcurl/daemontest_get.c
index ffcbbf90..b5a84eb2 100644
--- a/src/testcurl/daemontest_get.c
+++ b/src/testcurl/daemontest_get.c
@@ -113,7 +113,7 @@ testInternalGet (int poll_flag)
113 if (d == NULL) 113 if (d == NULL)
114 return 1; 114 return 1;
115 c = curl_easy_init (); 115 c = curl_easy_init ();
116 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:11080/hello_world"); 116 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:11080/hello_world");
117 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 117 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
118 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 118 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
119 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 119 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
@@ -162,7 +162,7 @@ testMultithreadedGet (int poll_flag)
162 if (d == NULL) 162 if (d == NULL)
163 return 16; 163 return 16;
164 c = curl_easy_init (); 164 c = curl_easy_init ();
165 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1081/hello_world"); 165 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1081/hello_world");
166 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 166 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
167 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 167 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
168 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 168 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
@@ -212,7 +212,7 @@ testMultithreadedPoolGet (int poll_flag)
212 if (d == NULL) 212 if (d == NULL)
213 return 16; 213 return 16;
214 c = curl_easy_init (); 214 c = curl_easy_init ();
215 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1081/hello_world"); 215 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1081/hello_world");
216 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 216 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
217 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 217 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
218 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 218 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
@@ -271,7 +271,7 @@ testExternalGet ()
271 if (d == NULL) 271 if (d == NULL)
272 return 256; 272 return 256;
273 c = curl_easy_init (); 273 c = curl_easy_init ();
274 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1082/hello_world"); 274 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1082/hello_world");
275 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 275 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
276 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 276 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
277 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 277 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
@@ -403,7 +403,7 @@ testUnknownPortGet (int poll_flag)
403 if (addr.sin_family != AF_INET) 403 if (addr.sin_family != AF_INET)
404 return 26214; 404 return 26214;
405 405
406 snprintf(buf, sizeof(buf), "http://localhost:%hu/hello_world", 406 snprintf(buf, sizeof(buf), "http://127.0.0.1:%hu/hello_world",
407 ntohs(addr.sin_port)); 407 ntohs(addr.sin_port));
408 408
409 c = curl_easy_init (); 409 c = curl_easy_init ();