-
-
Save DaveRandom/dd8c071a2c9f697631c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//echo dirname(__FILE__); | |
$curl = curl_init('https://mydomain.com/'); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($curl, CURLOPT_NOBODY, true); | |
curl_setopt($curl, CURLOPT_CERTINFO, true); | |
curl_setopt($curl, CURLOPT_VERBOSE, 1); | |
curl_setopt($curl, CURLOPT_STDERR, fopen('php://output', 'w')); | |
var_dump(curl_exec($curl)); | |
$certInfo = curl_getinfo($curl, CURLINFO_CERTINFO); | |
var_dump($certInfo);exit; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment