diff options
Diffstat (limited to 'src/testcurl/https/test_https_get.c')
-rw-r--r-- | src/testcurl/https/test_https_get.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testcurl/https/test_https_get.c b/src/testcurl/https/test_https_get.c index b18fc878..f3f0e1f5 100644 --- a/src/testcurl/https/test_https_get.c +++ b/src/testcurl/https/test_https_get.c | |||
@@ -143,6 +143,12 @@ curlExcessFound (CURL *c, | |||
143 | const size_t str_size = strlen (excess_found); | 143 | const size_t str_size = strlen (excess_found); |
144 | (void) c; /* Unused. Silence compiler warning. */ | 144 | (void) c; /* Unused. Silence compiler warning. */ |
145 | 145 | ||
146 | #ifdef _DEBUG | ||
147 | if ((CURLINFO_TEXT == type) || | ||
148 | (CURLINFO_HEADER_IN == type) || | ||
149 | (CURLINFO_HEADER_OUT == type)) | ||
150 | fprintf (stderr, "%.*s", (int) size, data); | ||
151 | #endif /* _DEBUG */ | ||
146 | if ((CURLINFO_TEXT == type) | 152 | if ((CURLINFO_TEXT == type) |
147 | && (size >= str_size) | 153 | && (size >= str_size) |
148 | && (0 == strncmp (excess_found, data, str_size))) | 154 | && (0 == strncmp (excess_found, data, str_size))) |
@@ -196,6 +202,7 @@ testEmptyGet (unsigned int poll_flag) | |||
196 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1L); | 202 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1L); |
197 | #endif | 203 | #endif |
198 | curl_easy_setopt (c, CURLOPT_URL, "https://127.0.0.1/"); | 204 | curl_easy_setopt (c, CURLOPT_URL, "https://127.0.0.1/"); |
205 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | ||
199 | curl_easy_setopt (c, CURLOPT_PORT, (long) global_port); | 206 | curl_easy_setopt (c, CURLOPT_PORT, (long) global_port); |
200 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); | 207 | curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer); |
201 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); | 208 | curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); |