31/01/2016, 17:14
(Modification du message : 31/01/2016, 17:15 par MenzAgitat.)
I don't think it's possible.
A workaround would be to use a web hosting and put a little php script on it, that would fetch the https webpage and send it back to your Eggdrop in http.
Some examples :
Your Eggdrop will just have to send the request to the php script and will get unencrypted http.
A workaround would be to use a web hosting and put a little php script on it, that would fetch the https webpage and send it back to your Eggdrop in http.
Some examples :
Code :
<?php
foreach($_GET as $k => $v) {
if (!isset($param))
$param = '?'.$k.'='.$v;
else
$param .= '&'.$k.'='.$v;
}
function get_youtube_content($url)
{
if(!function_exists('curl_init'))
{
die('CURL is not installed!');
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec($ch);
$http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
return ($http_status == '403') ? false : $output;
}
echo get_youtube_content('https://www.googleapis.com/youtube/v3/videos'.$param);
?>
Code :
<?php
foreach($_GET as $k => $v) {
if (!isset($param))
$param = '?'.$k.'='.$v;
else
$param .= '&'.$k.'='.$v;
}
echo file_get_contents('https://en.wikipedia.org/w/index.php'.$param);
?>
Your Eggdrop will just have to send the request to the php script and will get unencrypted http.