On 23/giu/07, at 18:33:41, Matthew Weier O'Phinney wrote:

-- Federico Galassi <[EMAIL PROTECTED]> wrote
(on Saturday, 23 June 2007, 03:49 PM +0200):
Hello,
i started to write this e-mail as a bug report. For the record, the
bug is:
--- code ---
$uri = "http://www.google.com/";;
$client = new Zend_Http_Client();
$client->setUri($uri);
$client->request('POST');
echo $client->getLastRequest();
$client->request('GET');
echo $client->getLastRequest();

You need to call $client->resetParameters() between subsequent requests.
This is clearly indicated in the manual.

Unfortunately, resetParameters() doesn't reset the content type, but that would just make it a simple bug. Does it make sense to leave the component in a broken state unless an action is taken by the user, even if it's stated by documentation? I mean, if it has to be done, why isn't it done implicitly after every request is made?

Thank you,
Federico


Reply via email to