[Rets-dev] PHP RETS Login Script Problems

Chris McKeever cgmckeever at crt.realtors.org
Wed Apr 11 15:40:05 CDT 2007


Michael -
There are a couple PHP resources here:
http://wiki.rets.org/index.php/External_Resources

as well as a whole project-code-base for PHP:
http://www.crt.realtors.org/projects/rets/index.html

On 4/10/07, Michael Quinn <michael at bluetux.com> wrote:
>
>
>
>
> I just signed up for the development list, so my apologies if this has
> already been covered before.  A quick review of the archives didn't reveal
> any answers. I'm trying to get a simple PHP RETS Login script working and
> not being successful. The documentation seems limited and samples I've
> followed online are not helping me get it working.
>
>
>
> I'm assuming someone familiar with the system could quickly point out the
> problem.
>
>
>
> After the first request I get the nonce and opaque values back from server.
> Then I use these in the second request to the server, but I never get a
> successful login. If I visit the server directly in my browser and enter my
> user/pass it seems to work correctly.
>
>
>
> I've tested the user/pass here to confirm it works:
>
> http://retsserver.realtors.org:8080/retsclientapp/RETS.htm
>
>
>
> I can login via browser to server login location here:
>
> http://rets.cbr.mlsrets.com/rets/login
>
>
>
> Here is my test login script which outputs to screen my requests and
> subsequent responses:
>
> http://www.bluetux.com/temp/ashtondata.com/test.php
>
>
>
> I have attached the script for your review. It is simple and seems like it
> should work unless I'm completely missing something. I was hoping someone
> could take a quick look and send feedback.
>
>
>
> There could be a potential problem in the construction of the cnonce. Also,
> the server requires the "Content-Length" header but I'm unsure how to
> determine the actual length value that is needed. I'm using 40.
>
>
>
> Alternatively, if anyone has some PHP login and query code I could sure use
> it!!
>
>
>
> Thanks for any assistance you can provide.
>
>
>
> Michael
>
>
>
>
>
> Michael Quinn
>
> BlueTux Internet Services
>
> p: 360.457.3300
>
> e: michael at bluetux.com
>
> w: www.bluetux.com
>
> ***
>
> To help ensure the quickest processing of website updates and support
> requests, please direct emails to support at bluetux.com. Thank you.
> _______________________________________________
> Rets-dev mailing list
> Rets-dev at rets.org
> http://lists.rets.org/mailman/listinfo/rets-dev
>
>
>


More information about the Rets-dev mailing list