|
@@ -47,7 +47,7 @@ class Builder {
|
|
|
/**
|
|
|
* Set the Builder is in multiple
|
|
|
*
|
|
|
- * @param $multiple boolean Prevent Builder fetch when it is in multiple. Default: true
|
|
|
+ * @param boolean $multiple Prevent Builder fetch when it is in multiple. Default: true
|
|
|
* @return Builder
|
|
|
*/
|
|
|
public function multiple($multiple = true) {
|
|
@@ -58,7 +58,7 @@ class Builder {
|
|
|
/**
|
|
|
* Set the URL to which the request is to be sent
|
|
|
*
|
|
|
- * @param $url string The URL to which the request is to be sent
|
|
|
+ * @param string $url The URL to which the request is to be sent
|
|
|
* @return Builder
|
|
|
*/
|
|
|
public function to($url)
|
|
@@ -69,7 +69,7 @@ class Builder {
|
|
|
/**
|
|
|
* Set the request with certinfo
|
|
|
*
|
|
|
- * @param $certInfo boolean Indicates whether or not the data should with certinfo. Default: true
|
|
|
+ * @param boolean $certInfo Indicates whether or not the data should with certinfo. Default: true
|
|
|
* @return Builder
|
|
|
*/
|
|
|
public function withCertInfo($certInfo = true) {
|
|
@@ -77,6 +77,18 @@ class Builder {
|
|
|
->withOption( 'VERBOSE', $certInfo );
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Disable SSL_VERIFYHOST & SSL_VERIFYPEER
|
|
|
+ *
|
|
|
+ * @param boolean $ssl Indicates without ssl. Default: true
|
|
|
+ * @return Builder
|
|
|
+ */
|
|
|
+ public function disableSSL($ssl = true)
|
|
|
+ {
|
|
|
+ return $this->curlOptions('SSL_VERIFYHOST', !$ssl)
|
|
|
+ ->curlOptions('SSL_VERIFYPEER', !$ssl);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Set the request return content encoding by
|
|
|
*
|