diff options
Diffstat (limited to 'src/testcurl/daemontest_long_header.c')
-rw-r--r-- | src/testcurl/daemontest_long_header.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcurl/daemontest_long_header.c b/src/testcurl/daemontest_long_header.c index 33f2f292..a3db4b7a 100644 --- a/src/testcurl/daemontest_long_header.c +++ b/src/testcurl/daemontest_long_header.c | |||
@@ -120,7 +120,7 @@ testLongUrlGet () | |||
120 | } | 120 | } |
121 | memset (url, 'a', VERY_LONG); | 121 | memset (url, 'a', VERY_LONG); |
122 | url[VERY_LONG - 1] = '\0'; | 122 | url[VERY_LONG - 1] = '\0'; |
123 | memcpy (url, "http://localhost:1080/", strlen ("http://localhost:1080/")); | 123 | memcpy (url, "http://127.0.0.1:1080/", strlen ("http://127.0.0.1:1080/")); |
124 | curl_easy_setopt (c, CURLOPT_URL, url); | 124 | curl_easy_setopt (c, CURLOPT_URL, url); |
125 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 125 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
126 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 126 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
@@ -196,7 +196,7 @@ testLongHeaderGet () | |||
196 | header = curl_slist_append (header, url); | 196 | header = curl_slist_append (header, url); |
197 | 197 | ||
198 | curl_easy_setopt (c, CURLOPT_HTTPHEADER, header); | 198 | curl_easy_setopt (c, CURLOPT_HTTPHEADER, header); |
199 | curl_easy_setopt (c, CURLOPT_URL, "http://localhost:1080/hello_world"); | 199 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1:1080/hello_world"); |
200 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 200 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
201 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 201 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |
202 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 202 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); |