diff options
-rw-r--r-- | src/transport/plugin_transport_http.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 775b260c7..26d0e5fdf 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c | |||
@@ -1728,6 +1728,11 @@ static ssize_t send_check_connections (void *cls, struct Session *ps) | |||
1728 | #if DEBUG_CURL | 1728 | #if DEBUG_CURL |
1729 | curl_easy_setopt(ps->recv_endpoint, CURLOPT_VERBOSE, 1L); | 1729 | curl_easy_setopt(ps->recv_endpoint, CURLOPT_VERBOSE, 1L); |
1730 | #endif | 1730 | #endif |
1731 | #if BUILD_HTTPS | ||
1732 | curl_easy_setopt (ps->recv_endpoint, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); | ||
1733 | curl_easy_setopt(ps->recv_endpoint, CURLOPT_SSL_VERIFYPEER, 0); | ||
1734 | curl_easy_setopt(ps->recv_endpoint, CURLOPT_SSL_VERIFYHOST, 0); | ||
1735 | #endif | ||
1731 | curl_easy_setopt(ps->recv_endpoint, CURLOPT_URL, ps->url); | 1736 | curl_easy_setopt(ps->recv_endpoint, CURLOPT_URL, ps->url); |
1732 | curl_easy_setopt(ps->recv_endpoint, CURLOPT_HEADERFUNCTION, &curl_get_header_cb); | 1737 | curl_easy_setopt(ps->recv_endpoint, CURLOPT_HEADERFUNCTION, &curl_get_header_cb); |
1733 | curl_easy_setopt(ps->recv_endpoint, CURLOPT_WRITEHEADER, ps); | 1738 | curl_easy_setopt(ps->recv_endpoint, CURLOPT_WRITEHEADER, ps); |
@@ -1819,6 +1824,11 @@ static ssize_t send_check_connections (void *cls, struct Session *ps) | |||
1819 | #if DEBUG_CURL | 1824 | #if DEBUG_CURL |
1820 | curl_easy_setopt(ps->send_endpoint, CURLOPT_VERBOSE, 1L); | 1825 | curl_easy_setopt(ps->send_endpoint, CURLOPT_VERBOSE, 1L); |
1821 | #endif | 1826 | #endif |
1827 | #if BUILD_HTTPS | ||
1828 | curl_easy_setopt (ps->send_endpoint, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); | ||
1829 | curl_easy_setopt(ps->send_endpoint, CURLOPT_SSL_VERIFYPEER, 0); | ||
1830 | curl_easy_setopt(ps->send_endpoint, CURLOPT_SSL_VERIFYHOST, 0); | ||
1831 | #endif | ||
1822 | curl_easy_setopt(ps->send_endpoint, CURLOPT_URL, ps->url); | 1832 | curl_easy_setopt(ps->send_endpoint, CURLOPT_URL, ps->url); |
1823 | curl_easy_setopt(ps->send_endpoint, CURLOPT_PUT, 1L); | 1833 | curl_easy_setopt(ps->send_endpoint, CURLOPT_PUT, 1L); |
1824 | curl_easy_setopt(ps->send_endpoint, CURLOPT_HEADERFUNCTION, &curl_put_header_cb); | 1834 | curl_easy_setopt(ps->send_endpoint, CURLOPT_HEADERFUNCTION, &curl_put_header_cb); |