From f332d8fde2fdbb5d4fd322092b5a22a678f5188b Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 10 Nov 2015 08:30:25 +0100 Subject: [PATCH] Remove redundant curl options refs #10566 --- doc/9-icinga2-api.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/9-icinga2-api.md b/doc/9-icinga2-api.md index 021a538cc..b52e60bde 100644 --- a/doc/9-icinga2-api.md +++ b/doc/9-icinga2-api.md @@ -1526,8 +1526,6 @@ The following example uses **PHP** and its `curl` library: CURLOPT_HTTPHEADER => $headers, CURLOPT_USERPWD => $username . ":" . $password, CURLOPT_RETURNTRANSFER => true, - CURLOPT_SSL_VERIFYHOST => 2, - CURLOPT_SSL_VERIFYPEER => true, CURLOPT_CAINFO => "pki/icinga2-ca.crt", CURLOPT_POST => count($data), CURLOPT_POSTFIELDS => json_encode($data) @@ -1580,7 +1578,7 @@ The following example uses **Perl** and the `Rest::Client` module: $client->setCa("pki/icinga2-ca.crt"); $client->addHeader("Accept", "application/json"); $client->addHeader("X-HTTP-Method-Override", "GET"); - $client->addHeader("Authorization", "Basic ".encode_base64($userpass)); + $client->addHeader("Authorization", "Basic " . encode_base64($userpass)); my %json_data = ( attrs => ['name', 'state', 'last_check_result'], joins => ['host.name', 'host.state', 'host.last_check_result'], -- 2.40.0