Ensure that the hostname in the SSL cert is checked properly

As explained here: http://nz1.php.net/manual/en/function.curl-setopt.php
the hostname that's in the certificate will not be checked against
the actual hostname of the server unless this value is set to 2.