How to check if curl has support for ssl?

See php.net/manual/en/function.curl-version.php $version = curl_version(); $ssl_supported= ($version'features' & CURL_VERSION_SSL) In $version'features' you have a features bitmask. Through an and operation between this bitmask and the proper constant you can check if a feture is enabled Possible constants are: CURL_VERSION_IPV6 (integer) CURL_VERSION_KERBEROS4 (integer) CURL_VERSION_SSL (integer) CURL_VERSION_LIBZ (integer).

See php.net/manual/en/function.curl-version.php $version = curl_version(); $ssl_supported= ($version'features' & CURL_VERSION_SSL); In $version'features' you have a features bitmask. Through an and operation between this bitmask and the proper constant you can check if a feture is enabled. Possible constants are: CURL_VERSION_IPV6 (integer) CURL_VERSION_KERBEROS4 (integer) CURL_VERSION_SSL (integer) CURL_VERSION_LIBZ (integer).

Check the output of stream_get_wrappers() if https is in the list you're good to go.

AFAIK cURL doesn't have a way to check if SSL is enabled or disabled, testing it and catching would let you know for sure. You could try testing this, to see if it works. (I don't have a server without SSL to test on..).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions