PHP Fatal error:
followed by the response body from RETS server in HTML format, but it
does not appear to be completed. It gets chopped off half way through
the RETS error page. The HTML that I can see does look like a typical
.NET error page <h1>Server error in '/' application...
followed by the error line number (769 in phrets.php).
From the log files it does appear as though the process is:
1) send initial request
2) receive 401
< HTTP/1.1 401 Unauthorized
< Connection: close
3) attempt 2nd request
4) nothing...
* Connection #0 to host mfr.rets.interealty.com left intact
* Closing connection #0
Any other ideas?
Thanks for your help.
On Thu, Dec 4, 2008 at 9:18 PM, Warren Bowley <wbo...@gmail.com> wrote:
>
> Any other ideas?
>
Here's the contents of rets_debug.txt
* About to connect() to mfr.rets.interealty.com port 80 (#0)
* Trying 12.32.9.169... * connected
* Connected to mfr.rets.interealty.com (12.32.9.169) port 80 (#0)
> GET /Login.asmx/Login HTTP/1.1
Host: mfr.rets.interealty.com
Accept: */*
RETS-Version: RETS/1.5
User-Agent: PHRETS/1.0
< HTTP/1.1 401 Unauthorized
< Connection: close
< Date: Tue, 09 Dec 2008 18:01:37 GMT
< Server: Microsoft-IIS/6.0
< Cache-Control:private
< X-AspNet-Version: 2.0.50727
< WWW-Authenticate: Basic realm="re...@mfr.rets.interealty.com"
< WWW-Authenticate: Digest
realm="re...@mfr.rets.interealty.com",nonce="b48963b3e850f7dd2e4a92ea0e60d527",opaque="87905771-e7ea-4e5a-9ebb-3d7af6f61a58",qop="auth"
< Cache-Control: private
< Content-Type: text/plain
* Issue another request to this URL:
'http://mfr.rets.interealty.com:80/Login.asmx/Login'
* Examining connection #0 for reuse
* Re-using existing connection! (#0) with host mfr.rets.interealty.com
* Connected to mfr.rets.interealty.com (12.32.9.169) port 80 (#0)
* Server auth using Digest with user '<user id>'
> GET /Login.asmx/Login HTTP/1.1
Authorization: Digest username="<user id>",
realm="re...@mfr.rets.interealty.com",
nonce="b48963b3e850f7dd2e4a92ea0e60d527", uri="/Login.asmx/Login",
cnonce="MDE4NDYz", nc=00000001, qop="auth",
response="e03c7dd6f93c93ab460abe41dce7500f",
opaque="87905771-e7ea-4e5a-9ebb-3d7af6f61a58"
Host: mfr.rets.interealty.com
Accept: */*
RETS-Version: RETS/1.5
User-Agent: PHRETS/1.0
In the PHRETS code, find the following line:
curl_setopt($this->ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST|CURLAUTH_BASIC);
and change it to:
curl_setopt($this->ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
This has resolved my problem and it is running now. Thank you Troy.