aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/daemontest_process_headers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/daemontest_process_headers.c')
-rw-r--r--src/testcurl/daemontest_process_headers.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testcurl/daemontest_process_headers.c b/src/testcurl/daemontest_process_headers.c
index fc0c5aef..f3ef879d 100644
--- a/src/testcurl/daemontest_process_headers.c
+++ b/src/testcurl/daemontest_process_headers.c
@@ -62,7 +62,7 @@ static int
62kv_cb (void *cls, enum MHD_ValueKind kind, const char *key, const char *value) 62kv_cb (void *cls, enum MHD_ValueKind kind, const char *key, const char *value)
63{ 63{
64 if ((0 == strcmp (key, MHD_HTTP_HEADER_HOST)) && 64 if ((0 == strcmp (key, MHD_HTTP_HEADER_HOST)) &&
65 (0 == strcmp (value, "localhost:21080")) && (kind == MHD_HEADER_KIND)) 65 (0 == strcmp (value, "127.0.0.1:21080")) && (kind == MHD_HEADER_KIND))
66 { 66 {
67 *((int *) cls) = 1; 67 *((int *) cls) = 1;
68 return MHD_NO; 68 return MHD_NO;
@@ -106,7 +106,7 @@ ahc_echo (void *cls,
106 abort (); 106 abort ();
107 hdr = MHD_lookup_connection_value (connection, 107 hdr = MHD_lookup_connection_value (connection,
108 MHD_HEADER_KIND, MHD_HTTP_HEADER_HOST); 108 MHD_HEADER_KIND, MHD_HTTP_HEADER_HOST);
109 if ((hdr == NULL) || (0 != strcmp (hdr, "localhost:21080"))) 109 if ((hdr == NULL) || (0 != strcmp (hdr, "127.0.0.1:21080")))
110 abort (); 110 abort ();
111 MHD_set_connection_value (connection, 111 MHD_set_connection_value (connection,
112 MHD_HEADER_KIND, "FakeHeader", "NowPresent"); 112 MHD_HEADER_KIND, "FakeHeader", "NowPresent");
@@ -155,7 +155,7 @@ testInternalGet ()
155 if (d == NULL) 155 if (d == NULL)
156 return 1; 156 return 1;
157 c = curl_easy_init (); 157 c = curl_easy_init ();
158 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:21080/hello_world"); 158 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:21080/hello_world");
159 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 159 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
160 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 160 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
161 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 161 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
@@ -204,7 +204,7 @@ testMultithreadedGet ()
204 if (d == NULL) 204 if (d == NULL)
205 return 16; 205 return 16;
206 c = curl_easy_init (); 206 c = curl_easy_init ();
207 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:21080/hello_world"); 207 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:21080/hello_world");
208 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 208 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
209 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 209 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
210 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 210 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
@@ -254,7 +254,7 @@ testMultithreadedPoolGet ()
254 if (d == NULL) 254 if (d == NULL)
255 return 16; 255 return 16;
256 c = curl_easy_init (); 256 c = curl_easy_init ();
257 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:21080/hello_world"); 257 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:21080/hello_world");
258 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 258 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
259 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 259 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
260 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 260 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
@@ -313,7 +313,7 @@ testExternalGet ()
313 if (d == NULL) 313 if (d == NULL)
314 return 256; 314 return 256;
315 c = curl_easy_init (); 315 c = curl_easy_init ();
316 curl_easy_setopt (c, CURLOPT_URL, "http://localhost:21080/hello_world"); 316 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:21080/hello_world");
317 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer); 317 curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
318 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 318 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
319 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 319 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);