hola gente, alguien me puede tirar un cable con este tema, le he dado hartas vueltas y no pillo el error, estoy tratando de enviar un form que requiere una cookie para funcionar, pero no lo logro..
ahí el code:
Código PHP:
<?php
$ckfile = tempnam ("/tmp", "CURLCOOKIE");
$ch = curl_init ("http://civil.poderjudicial.cl/CIVILPORWEB/");
curl_setopt ($ch, CURLOPT_COOKIEJAR, $ckfile);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec ($ch);
$ch = curl_init ("http://civil.poderjudicial.cl/CIVILPORWEB/AtPublicoDAction.do");
$dta = "?TIP_Consulta=1&TIP_Lengueta=tdUno&SeleccionL=0&TIP_Causa=C&ROL_Causa=450&ERA_Causa=2011&FEC_Desde=25%2F08%2F2011&FEC_Hasta=25%2F08%2F2011&SEL_Litigantes=0&RUT_Consulta=&RUT_DvConsulta=&NOM_Consulta=&APE_Paterno=&APE_Materno=&COD_Tribunal=46&irAccionAtPublico=Consultaee";
curl_setopt ($ch, CURLOPT_POST, true);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $dta);
curl_setopt ($ch, CURLOPT_HEADER, false);
curl_setopt ($ch, CURLOPT_COOKIEFILE, $ckfile);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec ($ch);
echo $output;
como se que no funciona.. al final dice: Error 500: Cannot find bean under name TribunalBox
debería arrojar una url con los datos de la causa.
atento a sus comentarios.
gracias.