Sujet : Hoa_Stream
Hey !
Je pense qu'il y a un petit bug dans Hoa_Stream
exemple
// Création du flux
Hoa_Stream_Context::getInstance(
'orange',
'http'
)->addOptions(array(
'method' => $this->getParameter('clicktocall.method'),
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => http_build_query($parameters)
));
// Récupération du flux
try {
$result = new Hoa_File_Read(
$this->getParameter('clicktocall.url'),
Hoa_File::MODE_READ,
'orange'
);
}
catch ( Hoa_File_Exception $e ) {
throw new Hoathis_Orange_Exception(
$e->getFormattedMessage(),
$e->getCode()
);
}
// on à la réponse ^^
$this->response = simplexml_load_string($result->readAll());Il exécute 2 fois la requête distante !
Pour tester je l'ai fait pointer sur une url qui ajoute +1 dans un fichier.
Sur cet essai il me retourne 2 dans le fichier, donc .... il poste 2 fois.
J'ai pas trop eu le temps de regarder plus...
Une correction super rapide serai bien cool !
Merci d'avance.