Ta...
es esto ?
Código PHP:
$casenumber="06SM02800";
$url ="http://visionweb.occourts.org/Vision_Public/SearchCase.do";
$fields = array(
'caseNbr'=>$casenumber,
'lastName'=>"",
'advSearch' =>"",
'middleName'=>"",
'enterpriseName'=>"",
'dln'=>"",
'firstName'=>"",
'dob_month'=>"",
'dob_day'=>"",
'dob_year'=>"",
'submit'=>"Search"
);
//url-ify the data for the POST
foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
rtrim($fields_string,'&');
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt ($ch, CURLOPT_COOKIEJAR, '../tmp/cookie.txt');
curl_setopt($ch, CURLOPT_REFERER, 'http://visionweb.occourts.org/Vision_Public/SearchCase.do');
//curl_setopt ($ch, CURLOPT_POSTFIELDS, "login=emailid&passwd=password&&submit=Sign In");
ob_start();
curl_exec ($ch);
ob_end_clean();
curl_close ($ch);
unset($ch);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_COOKIEFILE, "../tmp/cookie.txt");
curl_setopt($ch, CURLOPT_URL,"http://visionweb.occourts.org/Vision_Public/SearchCase.do");
curl_setopt($ch, CURLOPT_REFERER, 'http://visionweb.occourts.org/Vision_Public/SearchCase.do#searchResults');
curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
$result = curl_exec ($ch);
curl_close ($ch);
echo $result;
Pero no sale nada
http://suygenesis.no-ip.org/court/curl_cookie.php