@@ -64,9 +64,6 @@ MarcRestClient::MarcRestClient()
6464{
6565 cookieStore.set_file (" " ); // init cookie engine
6666 restClient->reset (); // reset debug->std:cout function
67- restClient->add <CURLOPT_SSL_VERIFYPEER>(0 );
68- restClient->add <CURLOPT_SSL_VERIFYHOST>(0 );
69- restClient->add <CURLOPT_CAINFO>(" cacrt.pem" );
7067}
7168
7269
@@ -127,6 +124,8 @@ string MarcRestClient::performPost()
127124 restClient->add <CURLOPT_HTTPHEADER>(header.get ());
128125 restClient->add <CURLOPT_FOLLOWLOCATION>(1L );
129126 restClient->add <CURLOPT_USERAGENT>(SAFE_USER_AGENT.data ()); // 403 without this
127+ restClient->add <CURLOPT_SSL_VERIFYPEER>(0 );
128+ restClient->add <CURLOPT_SSL_VERIFYHOST>(0 );
130129 restClient->add <CURLOPT_VERBOSE>(verbose);
131130 restClient->add <CURLOPT_DEBUGFUNCTION>(trace_post);
132131
@@ -161,6 +160,8 @@ void MarcRestClient::performGet(Container &target)
161160 restClient->add <CURLOPT_VERBOSE>(verbose);
162161 restClient->add <CURLOPT_FOLLOWLOCATION>(1L );
163162 restClient->add <CURLOPT_DEBUGFUNCTION>(trace_post);
163+ restClient->add <CURLOPT_SSL_VERIFYPEER>(0 );
164+ restClient->add <CURLOPT_SSL_VERIFYHOST>(0 );
164165 restClient->add <CURLOPT_WRITEDATA>(&target);
165166 restClient->add <CURLOPT_WRITEFUNCTION>([](void *contents, size_t size, size_t nmemb, void *userp) {
166167 auto result = static_cast <Container *>(userp);
0 commit comments