Here's the link to the login page:
REALLY LONG URL
Here's my code:
Code: Select all
<?php
$username = "yourusername";
$password = "password";
$data = "myUserid=$username&myPassword=$password&_account=idd&_ver=5&group_". "id=&custom_id=&blnFromLogin=True&UID=ACFD2C48-37FC-464B-94D5-B71A5C0D942F&". "strUserName=&org_id=oc&lid=0&_ver=5&menus=99&dropdowns=&mls_property_id=&". "PreviousPage=%2Fsearch.asp%3F_org_id%3DOC%26_agent_public_id%3DF207052147%". "26_sponsor_office_id%3DF2918001%26_lid%3D0&parentURL=&_vp_cb=&_per_id=". "AC03501440044B2597862C35FABACDB2&_sponsor_org_id=oc&_sponsor_office_id=F2918001". "&agent_public_id=F207052147&SUBMIT1=Submit";
$referer = "http://www.searchpoint.net/my_login.asp?blnNewLogin=True&_account=idd&_org_id=oc&'. '_per_id=AC03501440044B2597862C35FABACDB2&_agent_public_id=F207052147&_lid=0&_menus=99'. '&_ver=5&_mls_property_id=&_current=&_ssid=1&PreviousPage=%2Fsearch%2Easp%3F%5Forg%5'. 'Fid%3DOC%26%5Fagent%5Fpublic%5Fid%3DF207052147%26%5Fsponsor%5Foffice%'. '5Fid%3DF2918001%26%5Flid%3D0";
$URL="www.searchpoint.net/my_login.asp";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://$URL");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURL_HEADER, TRUE);
curl_setopt($ch, CURLOPT_REFERER, $referer);
$result = curl_exec ($ch);
curl_close ($ch);
print $result;
?>Thank you,
-phoenix786