client test and fixes

git-svn-id: http://svn.php.net/repository/pecl/http/branches/DEV_2@330010 c90b9560-bf6c-de11-be94-00142212c4b1