The board my client is with is changing their RETS server and they have set me up with an account there. I swapped out the login credentials for the new ones and now my scripts aren't working.
Going back to basics I decided to test the connection using the Example A code from the site and I'm getting a connection error.
I know the login is correct because I can successfully log in using Rets Connector.
Here is the debug file:
* About to connect() to rhb.rets.interealty.com port 80 (#0) * Trying 69.87.62.186... * connected * Connected to rhb.rets.interealty.com (69.87.62.186) port 80 (#0)
On Sat, Dec 10, 2011 at 05:30:34PM -0800, angelina_zooma wrote: > < > * Connection #0 to host rhb.rets.interealty.com left intact > <RETS ReplyCode="20037" ReplyText="User Agent not registered or > denied. Reference: 7e516643-8ca5-4ef3-8752-db30f9e645d1" /> > * Closing connection #0
Looks like the RETS provider requires you to include user agent info so they know what data is allowed for your account. They should have included a user-agent string along with the rest of your authorization info.
Do something like this before calling $rets->Connect():
server admin sent me the proper user agent (RETSConnector/1.5) and I attempted again using that, but it's still failing:
* About to connect() to rhb.rets.interealty.com port 80 (#0) * Trying 69.87.62.186... * connected * Connected to rhb.rets.interealty.com (69.87.62.186) port 80 (#0)
> On Sat, Dec 10, 2011 at 05:30:34PM -0800, angelina_zooma wrote: > > < > > * Connection #0 to host rhb.rets.interealty.com left intact > > <RETS ReplyCode="20037" ReplyText="User Agent not registered or > > denied. Reference: 7e516643-8ca5-4ef3-8752-db30f9e645d1" /> > > * Closing connection #0
> Looks like the RETS provider requires you to include user agent info so > they know what data is allowed for your account. They should have included > a user-agent string along with the rest of your authorization info.
> Do something like this before calling $rets->Connect():
Ok I found this note in the release notes for phrets-1.0rc1: " + New SetParam() options - use_interealty_ua_auth: value is true or false. default is false. only use with User-Agent authentication on Interealty servers
So, before connect() try: $rets->SetParam('use_interealty_ua_auth', true);
If that doesn't work, check with your contact again and make sure the server doesn't also want a user agent password. So that would be 4 things total, username, password, UA and UA password.
Hopefully the setparam() call will do the trick...
> On Dec 10, 10:05 pm, Troy Arnold <t...@zenux.net> wrote: > > On Sat, Dec 10, 2011 at 05:30:34PM -0800, angelina_zooma wrote: > > > < > > > * Connection #0 to host rhb.rets.interealty.com left intact > > > <RETS ReplyCode="20037" ReplyText="User Agent not registered or > > > denied. Reference: 7e516643-8ca5-4ef3-8752-db30f9e645d1" /> > > > * Closing connection #0
> > Looks like the RETS provider requires you to include user agent info so > > they know what data is allowed for your account. They should have included > > a user-agent string along with the rest of your authorization info.
> > Do something like this before calling $rets->Connect():
> -- > You received this message because you are subscribed to the Google Groups "PHRETS" group. > To post to this group, send email to phrets@googlegroups.com. > To unsubscribe from this group, send email to phrets+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/phrets?hl=en.
> Ok I found this note in the release notes for phrets-1.0rc1: > " + New SetParam() options > - use_interealty_ua_auth: value is true or false. default is false. > only use with User-Agent authentication on Interealty servers
> So, before connect() try: > $rets->SetParam('use_interealty_ua_auth', true);
> If that doesn't work, check with your contact again and make sure the > server doesn't also want a user agent password. So that would be 4 things > total, username, password, UA and UA password.
> Hopefully the setparam() call will do the trick...
> Hi Troy, I've added that line but there's no change.
> The server admin said there was no password required, so I'm going to > email him again and see if he can double check the info he gave me.
> thanks for all your help!
> On Dec 11, 7:41 am, Troy Arnold <t...@zenux.net> wrote:
> > Ok I found this note in the release notes for phrets-1.0rc1: > > " + New SetParam() options > > - use_interealty_ua_auth: value is true or false. default is false. > > only use with User-Agent authentication on Interealty servers
> > So, before connect() try: > > $rets->SetParam('use_interealty_ua_auth', true);
> > If that doesn't work, check with your contact again and make sure the > > server doesn't also want a user agent password. So that would be 4 things > > total, username, password, UA and UA password.
> > Hopefully the setparam() call will do the trick...