Ver Mensaje Individual
  #10 (permalink)  
Antiguo 15/09/2005, 13:05
Avatar de ancubero
ancubero
 
Fecha de Ingreso: octubre-2003
Ubicación: San Jose Costa Rica
Mensajes: 54
Antigüedad: 23 años
Puntos: 0
Gracias Vaalegk

Ya me hace el request a el server https.

aqui esta el codigo por que alguien mas lo llegara a ocupar


Código PHP:
<?php 
$ch 
= curl_init(); 
$res= curl_setopt ($ch, CURLOPT_URL,"https://tusito.com"); 
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); 
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($ch, CURLOPT_HEADER, 0); 
curl_setopt($ch, CURLOPT_POST, 1); 
curl_setopt($ch, CURLOPT_POSTFIELDS, "campo1=1&campo2=2....."); 
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
$result = curl_exec ($ch); 

echo 
$result;

curl_close ($ch); 
?>
muchas gracias.