@@ -77,7 +77,6 @@ void HTTP::initCurl(const std::string &url)
77
77
}
78
78
writeHandle = curl_easy_init ();
79
79
curl_easy_setopt (writeHandle, CURLOPT_URL, writeUrl.c_str ());
80
- curl_easy_setopt (writeHandle, CURLOPT_SSL_VERIFYPEER, 0 );
81
80
curl_easy_setopt (writeHandle, CURLOPT_CONNECTTIMEOUT, 10 );
82
81
curl_easy_setopt (writeHandle, CURLOPT_TIMEOUT, 10 );
83
82
curl_easy_setopt (writeHandle, CURLOPT_POST, 1 );
@@ -97,7 +96,6 @@ void HTTP::initCurlRead(const std::string &url)
97
96
mReadUrl = url + " &q=" ;
98
97
mReadUrl .insert (mReadUrl .find (' ?' ), " /query" );
99
98
readHandle = curl_easy_init ();
100
- curl_easy_setopt (readHandle, CURLOPT_SSL_VERIFYPEER, 0 );
101
99
curl_easy_setopt (readHandle, CURLOPT_CONNECTTIMEOUT, 10 );
102
100
curl_easy_setopt (readHandle, CURLOPT_TIMEOUT, 10 );
103
101
curl_easy_setopt (readHandle, CURLOPT_TCP_KEEPIDLE, 120L );
@@ -128,12 +126,6 @@ void HTTP::enableBasicAuth(const std::string &auth)
128
126
curl_easy_setopt (readHandle, CURLOPT_USERPWD, auth.c_str ());
129
127
}
130
128
131
- void HTTP::enableSsl ()
132
- {
133
- curl_easy_setopt (readHandle, CURLOPT_SSL_VERIFYPEER, 0L );
134
- curl_easy_setopt (writeHandle, CURLOPT_SSL_VERIFYPEER, 0L );
135
- }
136
-
137
129
void HTTP::send (std::string &&lineprotocol)
138
130
{
139
131
CURLcode response;
@@ -206,7 +198,6 @@ void HTTP::createDatabase()
206
198
207
199
CURL *createHandle = curl_easy_init ();
208
200
curl_easy_setopt (createHandle, CURLOPT_URL, createUrl.c_str ());
209
- curl_easy_setopt (createHandle, CURLOPT_SSL_VERIFYPEER, 0 );
210
201
curl_easy_setopt (createHandle, CURLOPT_CONNECTTIMEOUT, 10 );
211
202
curl_easy_setopt (createHandle, CURLOPT_TIMEOUT, 10 );
212
203
curl_easy_setopt (createHandle, CURLOPT_POST, 1 );
0 commit comments