$rets_login_url = $url;
$rets_username = $username;
$rets_password = $password;
$rets->AddHeader("RETS-Version", "RETS/1.7");
$rets->SetParam("cookie_file", $_SERVER['DOCUMENT_ROOT'] . "/addons/retsimport/cookies.txt");
$rets->SetParam("debug_mode", true);
$rets->SetParam("debug_file", $_SERVER['DOCUMENT_ROOT'] . "/addons/retsimport/rets_debug.txt");
echo "+ Connecting to {$rets_login_url} as {$rets_username}<br>\n";
$connect = $rets->Connect($rets_login_url, $rets_username, $rets_password);
// check for errors
if ($connect) {
echo " + Connected<br>\n";
}
else {
echo " + Not connected:<br>\n";
print_r($rets->Error());
exit;
}
$types = $rets->GetMetadataTypes();
// check for errors
if (!$types) {
print_r($rets->Error());
}
else {
foreach ($types as $type) {
echo "+ Resource {$type['Resource']}<br>\n";
foreach ($type['Data'] as $class) {
echo " + Class {$class['ClassName']}<br>\n";
}
}
}
echo "+ Disconnecting<br>\n";
$rets->Disconnect();
$rets = new phRETS;
$rets->FirewallTest();
--
You received this message because you are subscribed to the Google Groups "PHRETS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phrets+un...@googlegroups.com.
To post to this group, send email to phr...@googlegroups.com.
Visit this group at http://groups.google.com/group/phrets?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
It sounds like your server isn't allowing outbound connections on port 8080. The HTTP 0 code is consistent with a condition where cURL isn't able to establish a connection with the server. The same restriction isn't in place on retsmd.com which is why it's successful there.