Please forgive me, no offense intended, but I think you may not be understanding the way job flows work with the RETS Server / PHP / your HTTP server OR your browser requests.
To try to simply state the basics:
PHP (running PHRETS on your server) should be making the requests, querying the RETS server, processing the results, then reporting to your browser or shell or whatever you are using to report the results of the entire processing after the script is run in it's entirety. In other words, your own server or desktop machine running php handles everything then you see the results. So the browser you are using has no direct connection to the RETS server.
If the rets server is identifying your browser as the user agent, then you've bypassed php and PHRETS altogether, which would explain the user agent setting being ignored..
On May 15, 2012, at 6:37 pm, TJ wrote:
> Hello -
> This may be a silly question, but what is the best way to activate a
> script which queries a RETS server, while preserving a specified User-
> I'm attempting to access a script which runs a RETS query (via
> SearchQuery) through my browser, but after setting by User Agent (via
> $rets->AddHeader("User-Agent", $rets_user_agent); ) it always defaults
> to my browser User Agent, and my connection fails.
> Thank you!
Thank you for your time,
Creative,Affordable, Cutting Edge Technology for the Real Estate Professional