Fixed deprecated code

There were a couple of things deprecated in PHP 5.3 namely split() and the CURLOPT_SSL_VERIFYHOST option that I've fixed.