Test sur la création des modules par une commande console -> OK!

Test sur une api rest -> OK!
Test sur le deplacement d'une autre page de compte -> OK!

TODO: créé les pages de blog (sommaire,news) permettant d'afficher les fichiers md
TODO: finir créer les commandes pour l'ajout de modules
This commit is contained in:
Emmanuel ROY 2020-04-01 09:19:34 +02:00
commit 2b6ac77922
49 changed files with 26311 additions and 18367 deletions

View file

@ -132,19 +132,30 @@ class HttpMethodRequete
// return true;
// }
$curl_cmd = "curl -i -X $this->method -H 'Content-Type: application/json' -d '$this->content' $this->url";
$curl_cmd = "curl -i -k -X $this->method -H 'Content-Type: application/json' -d '$this->content' $this->url";
/** Pour utiliser ce code il faut utiliser la variable curl.cainfo dans php.ini */
Logger::addLog('curl', $curl_cmd);
$curl = curl_init($this->url);
/*$curl = curl_init($this->url);
//curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl,CURLOPT_SSL_ENABLE_NPN,false);
curl_setopt($curl,CURLOPT_SSL_ENABLE_ALPN,false);
curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($curl,CURLOPT_SSL_VERIFYSTATUS,false);
curl_setopt($curl,CURLOPT_PROXY_SSL_VERIFYPEER,false);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $this->method);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($this->data));
$response = curl_exec($curl);
curl_close($curl);
curl_close($curl);*/
$response = exec($curl_cmd);
Logger::addLog('curl.response', $response);
if (!$response) {
return false;