Ver Mensaje Individual
  #66 (permalink)  
Antiguo 25/02/2011, 16:07
Shalvaid
 
Fecha de Ingreso: febrero-2011
Mensajes: 13
Antigüedad: 13 años, 2 meses
Puntos: 0
Respuesta: [APORTE] file_get_contents(), cURL, HTTP_Request

Hola, antes que nada muchas gracias por los ejemplos. Necesito utilizar el que funciona con una direccion https:

Código PHP:
Ver original
  1. $LOGINURL = "https://www....";
  2. $agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)";
  3.  
  4. $ch = curl_init();
  5. curl_setopt($ch, CURLOPT_URL,$LOGINURL);
  6. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
  7. curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  8. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  9. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  10. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  11. $page = curl_exec ($ch);
  12. curl_close ($ch);
  13. echo $page;

El problema es que en internet explorer no funciona, hay alguna forma de hacerlo andar en ie?. En chrome y firefox funciona 10 puntos.

Muchisimas gracias .

edit: Elimine para que utilize cookies y envie datos por post, porque no lo necesitaba, me traerá algun problema esto?

Última edición por Shalvaid; 25/02/2011 a las 16:20