Unirest\Request::verifyPeer PHP Method

verifyPeer() public static method

Verify SSL peer
public static verifyPeer ( boolean $enabled ) : boolean
$enabled boolean enable SSL verification, by default is true
return boolean
    public static function verifyPeer($enabled)
    {
        return self::$verifyPeer = $enabled;
    }

Usage Example

Esempio n. 1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->output = new ConsoleOutput();
     Request::verifyPeer(false);
     Request::verifyHost(false);
     Request::cookieFile('/tmp/cookie.dat');
 }
All Usage Examples Of Unirest\Request::verifyPeer