GithubHelp home page GithubHelp logo

Flux RSS en https about leed HOT 10 CLOSED

leedrss avatar leedrss commented on August 15, 2024
Flux RSS en https

from leed.

Comments (10)

ldleman avatar ldleman commented on August 15, 2024

Noté dans les suggestions pour les versions futures :), SimplePie ne permettais pas a l'poque de son adoption par leed, le parsing de flux en https, il faut que je regarde si ça à changé (ça m'arrangerais :))

from leed.

cobalt74 avatar cobalt74 commented on August 15, 2024

La démo le permet 👍
http://simplepie.org/demo/?feed=https%3A%2F%2Fgithub.com%2Fldleman%2FLeed%2Fcommits%2Fmaster.atom

from leed.

Sbgodin avatar Sbgodin commented on August 15, 2024

Et chez moi j'ai le même lien qui marche très bien. Oui, Idleman, on te surveille un peu ;-)

Il faudrait plus de détails.

from leed.

marienfressinaud avatar marienfressinaud commented on August 15, 2024

Si si SimplePie gère très bien les flux https (en principe par défaut). Par contre il faut faire attention si le certificat n'est pas certifié, il peut y avoir des soucis !

from leed.

ldleman avatar ldleman commented on August 15, 2024

Curieux, leed ne fait aucune pré traitement après recup par simplepie, donc ça me parait étrange que celui ci le fasse par défaut... je regarderais :)

from leed.

tontof avatar tontof commented on August 15, 2024

La gestion des https dépend surtout de la config du serveur.
Par exemple avec curl il est possible de préciser un certificat :
curl_setopt($ch, CURLOPT_CAINFO, "/etc/cacert.pem");
Un prérequis est extension_loaded('openssl') à vrai.

from leed.

cobalt74 avatar cobalt74 commented on August 15, 2024

L'extension php openssl est bien activé sur mon serveur

from leed.

cobalt74 avatar cobalt74 commented on August 15, 2024

Je n'avais pas tout compris donc je suis allé un peu plus loin.

doc : CURLOPT_SSL_VERIFYPEER FALSE pour arrêter CURL de vérifier le certificat.
Les certificats alternatifs peuvent être spécifiés avec l'option CURLOPT_CAINFO (ajouté dans CURL 7.9.8) ou un répertoire de certificat peut être spécifié avec l'option CURLOPT_CAPATH. TRUE par défaut depuis cURL 7.10.

ma correction c'est de modifier le SimplyPie.class.php et après le curl_init();

  • ajouter :
    curl_setopt($fp, CURLOPT_SSL_VERIFYPEER, false);

le flux est correctement récupéré. (inconvénient, le certificat n'est pas vérifié)

from leed.

cobalt74 avatar cobalt74 commented on August 15, 2024

voir aussi

simplepie/simplepie#236

from leed.

ldleman avatar ldleman commented on August 15, 2024

Corrigé sur le commit b814203 merci pour l'info :)

from leed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.