frozensheep / rightmoveADF

PHP library for the Rightmove Real Time Property Datafeed (ADF).
MIT License
17 stars 20 forks source link

Issue on windows server #4

Open AdminUI opened 8 years ago

AdminUI commented 8 years ago

Hi,

This isn't an issue with the script as far as I can see, probably just a tweak ended in my config somewhere.

I have setup this script no problem on a linux server for testing purposes. It all worked perfectly fine and uploaded test data to Rightmoves site. Thank you for the class it saved me a lot of time.

However in production unfortunately the site is running on a Windows IIS server running PHP 5.6 and it just refuses to work. Im guessing its a certificate issue, and Rightmove themselves can't suss out why it is not working and even mentioned this class. I have checked curl is working on the server and I get a response. If I do a var_dump on the data before the curl its exactly as it is on my linux sever. The curl response just returns : null

Any ideas on making it work on windows server ?

Many thanks.

alien9x commented 7 years ago

Just in case anyone needs a solution for this. Setting line 40 in curl.php curl_setopt($resCurl, CURLOPT_SSL_VERIFYPEER, 0); seems to work