I have a couple of sites that I control. I need to post data from site one to site two. I don't need a response from site two, just post a couple of variables and stay on site one. If I use https, I found I can use CURLOPT_SSL_VERIFYPEER set to false to allow the https connection.
I assume this should be safe since I control both sites. What needs to be added to use CURLOPT_SSL_VERIFYPEER set to true/default?
$url = 'https://my_other_site.com/test.php';
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
'var1' => urlencode('abc123'),
'var2 => urlencode('xyz456')
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec ($ch);