Ask Your Question

Revision history [back]

I was able to login using cURL like this using your info.

$loginURL = 'http://manhattan.rets.paragonrels.com/rets/fnisrets.aspx/manhattan/login?rets-version=rets/1.7.2'; $username = 'SRram1'; $password = '**';

$curlRets = curl_init(); $headers[] = "Accept: /"; $headers[] = "RETS-Version: RETS/1.7.2"; $headers[] = "User-Agent: RETSConnector/1.0"; curl_setopt($curlRets, CURLOPT_URL, $loginURL); curl_setopt($curlRets, CURLOPT_HTTPHEADER, $headers); curl_setopt($curlRets, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curlRets, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); curl_setopt($curlRets, CURLOPT_USERPWD, $username.":".$password);

$output = curl_exec($curlRets); echo $output ; curl_close($curlRets);

I was able to login using cURL like this using your info.

$loginURL = 'http://manhattan.rets.paragonrels.com/rets/fnisrets.aspx/manhattan/login?rets-version=rets/1.7.2'; 'http://manhattan.rets.paragonrels.com/rets/fnisrets.aspx/manhattan/login?rets-version=rets/1.7.2';

$username = 'SRram1'; 'SRram1';

$password = '**';

$curlRets = curl_init();

$headers[] = "Accept: /";

$headers[] = "RETS-Version: RETS/1.7.2";

$headers[] = "User-Agent: RETSConnector/1.0";

curl_setopt($curlRets, CURLOPT_URL, $loginURL);

curl_setopt($curlRets, CURLOPT_HTTPHEADER, $headers); $headers);

curl_setopt($curlRets, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($curlRets, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);

curl_setopt($curlRets, CURLOPT_USERPWD, $username.":".$password);

$output = curl_exec($curlRets);

echo $output ; ;

curl_close($curlRets);