aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/daemontest_post.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/daemontest_post.c')
-rw-r--r--src/testcurl/daemontest_post.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testcurl/daemontest_post.c b/src/testcurl/daemontest_post.c
index ba682cf5..f6a26b61 100644
--- a/src/testcurl/daemontest_post.c
+++ b/src/testcurl/daemontest_post.c
@@ -144,7 +144,7 @@ testInternalPost ()
144 if (d == NULL) 144 if (d == NULL)
145 return 1; 145 return 1;
146 c = curl_easy_init (); 146 c = curl_easy_init ();
147 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1080/hello_world"); 147 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1080/hello_world");
148 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 148 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
149 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 149 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
150 curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); 150 curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA);
@@ -196,7 +196,7 @@ testMultithreadedPost ()
196 if (d == NULL) 196 if (d == NULL)
197 return 16; 197 return 16;
198 c = curl_easy_init (); 198 c = curl_easy_init ();
199 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1081/hello_world"); 199 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1081/hello_world");
200 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 200 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
201 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 201 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
202 curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); 202 curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA);
@@ -249,7 +249,7 @@ testMultithreadedPoolPost ()
249 if (d == NULL) 249 if (d == NULL)
250 return 16; 250 return 16;
251 c = curl_easy_init (); 251 c = curl_easy_init ();
252 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1081/hello_world"); 252 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1081/hello_world");
253 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 253 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
254 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 254 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
255 curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); 255 curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA);
@@ -311,7 +311,7 @@ testExternalPost ()
311 if (d == NULL) 311 if (d == NULL)
312 return 256; 312 return 256;
313 c = curl_easy_init (); 313 c = curl_easy_init ();
314 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1082/hello_world"); 314 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1082/hello_world");
315 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 315 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
316 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 316 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
317 curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA); 317 curl_easy_setopt (c, CURLOPT_POSTFIELDS, POST_DATA);
@@ -516,7 +516,7 @@ testMultithreadedPostCancelPart(int flags)
516 crbc.pos = 0; 516 crbc.pos = 0;
517 517
518 c = curl_easy_init (); 518 c = curl_easy_init ();
519 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1081/hello_world"); 519 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1081/hello_world");
520 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 520 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
521 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 521 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
522 curl_easy_setopt (c, CURLOPT_READFUNCTION, (flags & FLAG_SLOW_READ) ? &slowReadBuffer : &readBuffer); 522 curl_easy_setopt (c, CURLOPT_READFUNCTION, (flags & FLAG_SLOW_READ) ? &slowReadBuffer : &readBuffer);