ZF-23: Zend_Http_Client::get() always build path string with '?'

Issue Type: Bug Created: 2006-06-19T01:18:34.000+0000 Last Updated: 2007-07-05T14:44:27.000+0000 Status: Closed Fix version(s): - 0.1.4 (29/Jun/06)

Reporter: Naoto Ishikawa (ishinao) Assignee: Shahar Evron (shahar) Tags: - Zend_Http_Client

Related issues: Attachments:


Zend_Http_Client builds a request path string like following code.… 74 $request = array_merge(array('GET ' . $this->_uri->getPath() . '?' . $this->_uri->getQuery() . ' HTTP/1.0',

This code always makes a path string with "?" if URL has no querystring. ex) "/path/to/file?" But some webpages return other contents if the path string has "?" or not. ex) and

So please change like this.

74 $request = array_merge(array('GET ' . $this->_uri->getPath() . (($this->_uri->getQuery() !== false) ? '?' . $this->_uri->getQuery() : '') . ' HTTP/1.0',


Posted by Shahar Evron (shahar) on 2006-06-21T07:38:04.000+0000

Development of the HTTP client currently concentrated on the incubator version which is a complete rewrite of the client.

Please test if the problem exists in the incubator version.

To learn how to use the incubator components, read this:…

Posted by Naoto Ishikawa (ishinao) on 2006-06-21T08:04:17.000+0000

Ok, I will test the incubator version. Please close this issue.

Posted by Shahar Evron (shahar) on 2006-06-23T12:26:09.000+0000

Does not happen in the incubator version - will not fix, please use the incubator (will soon replace the old HTTP client anyway).

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.