07-06-2013, 10:33 AM
I was having similar problems whereby loading the Remote Phonebook was giving a "CONNECT ERROR". I think the "CONNECT ERROR" message is just too generic.
In my case, I was loading my Remote phonebook from a PHP script (so the entreis were being generated dynamically). Because of this, the "Content-Length" header was not being sent.
So if you want to generate Remote phonebook from a PHP script you first need to generate the XML in memory and then use:
header("Content-Length: ".strlen($xml));
echo($xml);
In my case, I was loading my Remote phonebook from a PHP script (so the entreis were being generated dynamically). Because of this, the "Content-Length" header was not being sent.
So if you want to generate Remote phonebook from a PHP script you first need to generate the XML in memory and then use:
header("Content-Length: ".strlen($xml));
echo($xml);