Ver Mensaje Individual
  #9 (permalink)  
Antiguo 11/01/2013, 13:28
Avatar de zokter
zokter
 
Fecha de Ingreso: enero-2013
Mensajes: 7
Antigüedad: 11 años, 3 meses
Puntos: 0
Respuesta: Enviar variable $_POST

Cita:
//Iniciar sesión
$parametros_post = las variables del form);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http//aqui el fform');
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept-Language: es-es,en"));
curl_setopt($ch, CURLOPT_POST,true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $parametros_post);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

?>
asi quedaria :D