I'm trying to make a connection from my PHP script to an Odoo server, but running into inconsistent connection problems.
I have 3 test locations:
And 2 test scripts:
Odoo Demo:
require_once("ripcord.php");
$info = ripcord::client('https://demo.odoo.com/start')->start();
print_r($info);
Odoo Target Server:
require_once("ripcord.php");
$common = ripcord::client("###.###.###.##:8069/xmlrpc/2/common");
print_r($common->version());
This gives me strange and inconsistent outcomes:
Versions:
Localhost:
Server (Domain A & Domain B):
What makes it stranger is that Domain A and Domain B are on the same server. What factors could determine whether or not the request succeeds? More importantly, how can I successfully access the Odoo Target Server from Domain A and B?
Turns out my problem was two-fold: