Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/12/2010, 12:27
a77icu5
 
Fecha de Ingreso: agosto-2008
Ubicación: Puebla, Mexico.
Mensajes: 84
Antigüedad: 15 años, 8 meses
Puntos: 0
Respuesta: Autenticacion cURL

Por ejemplo probemos con lo mas simple del mundo

Código PHP:
create_sess.php
session_start
();
$_SESSION['my_sess'] = 'some session value'
y entonces ejecutamos en el browser
Código PHP:
http://localhost/create_sess.php 
Hasta aqui todo bien, se crea una sesion simple de prueba, pero ahora intenten haciendo lo siguiente

Código PHP:
$ch curl_init();
curl_setopt($chCURLOPT_URL'http://localhost/create_sess.php');
curl_setopt($chCURLOPT_FAILONERROR1);
curl_setopt($chCURLOPT_FOLLOWLOCATION1);
curl_setopt($chCURLOPT_RETURNTRANSFER1);
curl_setopt($chCURLOPT_TIMEOUT5);
$content curl_exec($ch);
curl_close($ch); 
Es aqui donde vienen los problemas, la sesion no se crea, alguien me puede decir por que?