Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X Yosemite 10.10 cURL 7.37.1 CA certificate issue fixed by setting curl_ssl_verifypeer to true #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
.idea

29 changes: 13 additions & 16 deletions TwitterStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class TwitterStrategy extends OpauthStrategy {
'oauth_version' => '1.0',
'curl_connecttimeout' => 30,
'curl_timeout' => 10,
'curl_ssl_verifypeer' => false,
'curl_ssl_verifypeer' => true,
'curl_followlocation' => false, // whether to follow redirects or not
'curl_proxy' => false, // really you don't want to use this if you are using streaming
'curl_proxyuserpwd' => false, // format username:password for proxy, if required
Expand Down Expand Up @@ -168,22 +168,19 @@ private function _verify_credentials($user_token, $user_token_secret) {

return $this->recursiveGetObjectVars($response);
}



/**
* Wrapper of tmhOAuth's request() with Opauth's error handling.
*
* request():
* Make an HTTP request using this library. This method doesn't return anything.
* Instead the response should be inspected directly.
*
* @param string $method the HTTP method being used. e.g. POST, GET, HEAD etc
* @param string $url the request URL without query string parameters
* @param array $params the request parameters as an array of key=value pairs
* @param string $useauth whether to use authentication when making the request. Default true.
* @param string $multipart whether this request contains multipart data. Default false
*/
/**
* Wrapper of tmhOAuth's request() with Opauth's error handling.
* request():
* Make an HTTP request using this library. This method doesn't return anything.
* Instead the response should be inspected directly.
* @param string $method the HTTP method being used. e.g. POST, GET, HEAD etc
* @param string $url the request URL without query string parameters
* @param array $params the request parameters as an array of key=value pairs
* @param bool $useauth whether to use authentication when making the request. Default true.
* @param bool $multipart whether this request contains multipart data. Default false
* @return mixed
*/
private function _request($method, $url, $params = array(), $useauth = true, $multipart = false) {
$code = $this->tmhOAuth->request($method, $url, $params, $useauth, $multipart);

Expand Down
Loading