using PHRETS, getting "cURL error 51" on all Paragon MLSes
I'm trying to use the PHRETS library to access mls listings, and am running into a snag. Our current system uses cURL directly through (mostly) perl scripts, and doesn't have this problem. (direct cURL calls, mostly through perl scripts)
Specifically, during the PHRETS login process, I'm getting an error "cURL error 51: SSL: no alternative certificate subject name matches target host name 'amador.rets.paragonrels.com" when using my credentials for the Amador mls:
Login CMD: https://amador.rets.paragonrels.com/r... username/password using Basic Authentication (I have tried both ways)
My code looks like: $rets_config = new \PHRETS\Configuration; $rets_config->setLoginUrl( $mls_rets_info['dl_rets_login_cmd'] ) ->setUsername( $mls_rets_info['dl_data_user'] ) ->setPassword( $mls_rets_info['dl_data_pass'] ) ->setHttpAuthenticationMethod( \PHRETS\Configuration::AUTH_BASIC );
$rets = new \PHRETS\Session($rets_config);
$connect = $rets->Login();
at which point the exception is thrown. I also tried using RETS MD with our credentials, but that fails as well. So making the calls directly with cURL works, but the PHRETS versions don't.
Any ideas?
Thanks
Comments
Try using this URL: "https://amador-rets.paragonrels.com/rets/fnisrets.aspx/AMADOR/login?rets-version=rets/1.7.2" for your login. It does require BASIC authentication for HTTPS.
Well, that worked a treat! 1 down, 169 to go... I get the same error for waco, even though the url has the 1.7.2 on the end and I am using basic authentication.
https://waco.rets.paragonrels.com/ret...
thanks!
When using HTTPS the URL needs a dash instead dot between MLSID and RETS. "https://waco-rets.paragonrels.com" in the CNAME.
Were you able to get the rest of them working?
I'm slowly working through them all, but the information you gave was a great help. I have run into a hitch a couple of times when requesting listing information - for 3 MLSes (so far), I have been seeing an error message like: "Unauthorized Query. You are not authorized to access class [CM_4] in resource [Property]." It's something I can probable work around, though.
If it says unauthorized accessing the class in a particular resource, it usually means your account profile does not have that particular class enabled. Or your security level may not allow access. I would need more specific information such as the RETS Login URL and the account name (NO PASSWORDS).
So far: IL-QCARA - CM_4 https://quadcities-rets.paragonrels.c... User: HEATHER LOPEZ
NE-GPMLS - CS_3 https://oabrmls-rets.paragonrels.com/... User: 965877
CA-TSMLS - RN_4 https://tsierra-rets.paragonrels.com/... User: 10127
I checked and it looks like those classes are disabled in the profile assigned to your account. MLS oabrmls has both CS_3 and CL_4 disabled for your profile. You would need to contact the MLS directly to request access to them.
Thank you. If I find anymore, I'll assume something similar and check with the mls.
Were you able to get all your issues addressed?
Bruce - thanks, I think so. Looks like all my Paragon MLSes are handled now. I have a few holdouts with other (less responsive) vendors, but am not focused on the actual downloading and processing of images. Thanks so much for your help!