Skip to content

Instantly share code, notes, and snippets.

@whatnickcodes
Created December 11, 2012 02:48
Show Gist options
  • Save whatnickcodes/4255508 to your computer and use it in GitHub Desktop.
Save whatnickcodes/4255508 to your computer and use it in GitHub Desktop.
jefff
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, 'WePay v2 PHP SDK v' . self::VERSION);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 30); // 30-second timeout, adjust to taste
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_CAINFO, '/var/www/sites/code.enga.ge/html/cod/wepay/cacert.pem');
// curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$raw = curl_exec($ch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment