Ver Mensaje Individual
  #7 (permalink)  
Antiguo 08/09/2008, 15:28
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 20 años, 5 meses
Puntos: 2135
Respuesta: Obtener el resultado de una web tras el envio de un formulario.

Desde el manual:
Código PHP:
<?php

$postData
['userInfo'] = "@userInfo.xml";
$url = "http://curl.dev";

curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
$response = curl_exec($ch);

print_r($response);
if(
curl_errno($ch))
  {
    print 
curl_error($ch);
  }
curl_close($ch);
?>
Saludos.