This
<?php
$ch = curl_init();
//These two lines produced the same error code, cURL error 6 can't resolve host
//curl_setopt($ch, CURLOPT_URL,"https://72.21.92.35");
curl_setopt($ch, CURLOPT_URL,"https://clients.mindbodyonline.com");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: clients.mindbodyonline.com'));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
if(curl_exec ($ch) === FALSE) {
echo 'Curl error: ' . curl_errno($ch) . ', ' . curl_error($ch);
die();
}
curl_close ($ch);
?>
Gives the same error, cURL 6, can't resolve host 'clients.mindbodyonline.com'
This
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://72.21.92.35");
//curl_setopt($ch, CURLOPT_URL,"https://clients.mindbodyonline.com");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: clients.mindbodyonline.com'));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
if(curl_exec ($ch) === FALSE) {
echo 'Curl error: ' . curl_errno($ch) . ', ' . curl_error($ch);
die();
}
curl_close ($ch);
?>
gives
Curl error: 6, SSL: certificate subject name '*.mindbodyonline.com' does not match target host name '72.21.92.35'
So I changed it to curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); and got the cURL error 6 can't resolve host error again.
And this
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://72.21.92.35");
//curl_setopt($ch, CURLOPT_URL,"https://clients.mindbodyonline.com");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: clients.mindbodyonline.com'));
if(curl_exec ($ch) === FALSE) {
echo 'Curl error: ' . curl_errno($ch) . ', ' . curl_error($ch);
die();
}
curl_close ($ch);
?>
Gives
Curl error: 77, error setting certificate verify locations: CAfile: /usr/local/share/certs/ca-root-nss.crt CApath: none
I called them yesterday and they couldn't do a thing. I could perhaps call them again with some more information but the guys I called don't have any more control over the server than you guys do.