1) Yes, the SSL communication with Rightmove service can be achieved using PHP cURL library. Contact Rightmove ADFT Team and request necessary credentials for client authentication. Extract .pem key and certificate from .p12 file.
On Linux:
openssl pkcs12 -in file.p12 -out file.key.pem -nocerts -nodes
openssl pkcs12 -in file.p12 -out file.crt.pem -clcerts -nokeys
Issue following request to Rightmove service along with your data, for more details see Rightmove Real Time Datafeed Specifications.
$url = 'https://adfapi.adftest.rightmove.com/v1/YOUR METHOD';
$curl = curl_init();
$headers = ["Content-type: application/json;charset=\"utf-8\""];
curl_setopt_array($curl,
[
CURLOPT_URL => $url,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode($data, JSON_UNESCAPED_SLASHES),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => true,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_VERBOSE => true,
CURLOPT_SSLVERSION => 6,
CURLOPT_SSLCERT => 'RIGHTMOVE SECRETE',
CURLOPT_SSLKEY => 'RIGHTMOVE SSL KEY',
CURLOPT_SSLCERTPASSWD => 'RIGHTMOVE PASS',
CURLOPT_SSLKEYPASSWD => 'RIGHTMOVE SSL PASS',
);
$request = curl_exec($curl);
if (empty($request)) {
throw new \RuntimeException('cURL request returned following error: '.curl_error($curl) );
}
curl_close($curl);
return $request;
2) Here is sample PHP script RightmoveADF on GitHub.
Alternatively use other services that offers Real-time data feed integration with Rightmove, there are many others available, here a few results from Google search: