Skip to content

Instantly share code, notes, and snippets.

@brianr
Created March 15, 2013 20:18
Show Gist options
  • Save brianr/5172812 to your computer and use it in GitHub Desktop.
Save brianr/5172812 to your computer and use it in GitHub Desktop.
diff --git a/rollbar.php b/rollbar.php
index d36a09c..d392102 100644
--- a/rollbar.php
+++ b/rollbar.php
@@ -663,6 +663,9 @@ class RollbarNotifier {
$url = $this->base_api_url . $action . '/';
$ch = curl_init();
+ curl_setopt($ch, CURLOPT_VERBOSE, true);
+ // add the following only if on php 5.3.2 or higher
+ curl_setopt($ch, CURLOPT_CERTINFO, true);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment