
29/04/2010, 09:27
|
 | | | Fecha de Ingreso: febrero-2010 Ubicación: DF
Mensajes: 315
Antigüedad: 15 años Puntos: 20 | |
PHP Curl Hola buenos dias a todos,
Necesito ayuda con un script de curl ya funcionaba pero ahora a la dirección donde se conecta ha cambiado, les pongo el script.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.miweb.com:444/pago/");
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 6.0; WINDOWS; .NET CLR 1.1.4322)');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Charset'=>'utf-8,*'));
curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
if(defined('CURLOPT_ENCODING')) curl_setopt($ch, CURLOPT_ENCODING, '');
$this->_buffer = curl_exec($ch);
if($this->_buffer == null) return false;
if(!defined('CURLOPT_ENCODING')) return false;
curl_close($ch);
El error que me manda es un TimeOut. |