Debug: getLabel(); ?>
getTestUrl());
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "");
curl_setopt($ch, CURLOPT_VERBOSE, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
$cacert = ABSPATH . WPINC . '/certificates/ca-bundle.crt';
if (file_exists($cacert)) {
curl_setopt($ch, CURLOPT_CAINFO, $cacert);
}
$file = tempnam(sys_get_temp_dir(), 'nsl-test');
$temporaryHandle = fopen($file, 'w+');
curl_setopt($ch, CURLOPT_STDERR, $temporaryHandle);
$output = curl_exec($ch);
curl_close($ch);
rewind($temporaryHandle);
$verboseLog = stream_get_contents($temporaryHandle);
if (preg_match('/connected/i', $verboseLog)) {
?>
", htmlspecialchars($verboseLog), "\n";
fclose($temporaryHandle);
echo "", htmlspecialchars($output), "
\n";
@unlink($file);
?>