
Código PHP:
$ch = curl_init();
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL,"https://addons.mozilla.org/es-ES/firefox/");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd()."\cookie.txt");
curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd()."\cookie.txt");
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)");
$resultado = curl_exec($ch);
echo $resultado;
$error = curl_error($ch);
curl_close($ch);
http://000webhost.com/
El host tiene curl porque si pruebo con www.google.com funciona.
En el host si pruebo con paginas sin Https funcionan, pero las paginas con el https no me funcionan.La cookie en el hosta la tengo con chmod 777, y sigue sin funcionar. Directamente no me imprime nada. Pero en mi localhost funciona.
Necesito hacer alguna otra configuracion?
Gracias de Antemano.