I am making an application that deals with postbacks, and I wanted to make it so it would be able to postback to domains with https://
even if the person who is using the app doesn't have the openssl
php extension. (It would warn them that their postbacks would be made non securely.)
I turned off openssl
and tried the following, but it is giving me an error that I do not have https wrapper.
$arrContextOptions=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
echo file_get_contents('https://httpbin.org/get?test=test', true, stream_context_create($arrContextOptions) );
Is it possible to make this request with file_get_contents
?