[Rets-dev] help with search query

Keith T. Garner kgarner at crt.realtors.org
Mon Mar 5 09:38:27 CST 2007


(Besides Chris's caveat that the browser is a terrible RETS client, while
even still technically possible to be used.)

Without seeing the metadata on that server, here's two things I think could
be the issue:

 1) You're not URL escaping things well.  You should probably have your
query look something like:  (ST%3dACTV),(LD%3d2007-02-28)

 2) LD might be a DateTime instead of a Date, due to that, you might need to
specify the time as a datetime.


Also, because I do it so much, I'll just shorten my typical next paragraph
to be:  #include <std_librets_plug.h>

Keith

Vlado Tovarnak wrote:
> Hello,
> 
> I am trying to search via browser for listings with listing date (LD) =
> 2007-02-28, but server is responding with <RETS ReplyCode="20206"
> ReplyText="Invalid  Query Syntax: line 1:15: unexpected token:
> 2007-02-28" />
> 
> on this query:
> 
> /rets/search?SearchType=Property&Class=DE&Query=(ST=ACTV),(LD=2007-02-28)&QueryType=DMQL&Count=1&Limit=100&Offset=101&Format=COMPACT
> 
> Server is MLSNI's Variman 1.5
> 
> can I ask you what am I doing wrong?
> 
> thanks
> with best regards
> Vlado Tovarnak
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Rets-dev mailing list
> Rets-dev at rets.org
> http://lists.rets.org/mailman/listinfo/rets-dev


-- 
  Keith T. Garner - Managing Director - Center for REALTOR® Technology
   kgarner at realtors.org - 312-329-3294 - http://blog.realtors.org/crt



More information about the Rets-dev mailing list