Line 7... |
Line 7... |
7 |
* @package Framework
|
7 |
* @package Framework
|
8 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
8 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
9 |
* @copyright Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
|
9 |
* @copyright Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
|
10 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
10 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
11 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
11 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
12 |
* @version $Id: RestClient.php 350 2011-06-16 16:50:33Z jpm $
|
12 |
* @version $Id: RestClient.php 353 2011-08-01 16:02:32Z jpm $
|
13 |
*/
|
13 |
*/
|
14 |
class RestClient {
|
14 |
class RestClient {
|
15 |
const HTTP_URL_REQUETE_SEPARATEUR = '&';
|
15 |
const HTTP_URL_REQUETE_SEPARATEUR = '&';
|
16 |
const HTTP_URL_REQUETE_CLE_VALEUR_SEPARATEUR = '=';
|
16 |
const HTTP_URL_REQUETE_CLE_VALEUR_SEPARATEUR = '=';
|
17 |
private $http_methodes = array('GET', 'POST', 'PUT', 'DELETE', 'HEAD', 'OPTIONS', 'CONNECT', 'TRACE');
|
17 |
private $http_methodes = array('GET', 'POST', 'PUT', 'DELETE', 'HEAD', 'OPTIONS', 'CONNECT', 'TRACE');
|
Line 20... |
Line 20... |
20 |
private $reponse_entetes = null;
|
20 |
private $reponse_entetes = null;
|
Line 21... |
Line 21... |
21 |
|
21 |
|
22 |
//+----------------------------------------------------------------------------------------------------------------+
|
22 |
//+----------------------------------------------------------------------------------------------------------------+
|
Line 23... |
Line 23... |
23 |
// ACCESSEURS
|
23 |
// ACCESSEURS
|
24 |
|
24 |
|
25 |
public function getReponseEntetes($cle) {
|
25 |
public function getReponseEntetes() {
|
Line 26... |
Line 26... |
26 |
return $this->reponse_entetes;
|
26 |
return $this->reponse_entetes;
|
27 |
}
|
27 |
}
|