ZF-1934: http client fails on redirects with malformed urls
I have code failing with exception like this: Stack trace:
0 /home/kgrecki/ZendFramework-1.0.1/library/Zend/Uri/Http.php(528): Zend_Uri_Http->_parseQuery('source_id=a&ur...')
1 /home/kgrecki/ZendFramework-1.0.1/library/Zend/Http/Client.php(800): Zend_Uri_Http->setQuery('source_id=a&ur...')
2 /home/tests/Case/Abstract.php(84): Zend_Http_Client->request()
I use http client for functional testing, grabbing requests from apache log and comparing responses. The problem is when a redirect happens and the destination url has malformed query string. It fails on validating the query string, probably because the url is not encoded. I think the client should behave the same as the browsers ale letting this url through. Currently I cannot test the response even when using 'maxredirects' => 0 because the exception is thrown before the request.