URIs need to be encoded. Pass your string through urlencode() before sending it on to Zend_Uri.

I am using Zend_HTTP_Client and trying to make a request for a URL which is having some query string parameters but the values are having [space] in between like ....php?cat=sweet home When I pass such URL Zend_Uri throw an exception "Invalid URI supplied" .. here is the TOP code of the exception. Zend_Uri_Exception Object ( [message:protected ] => Invalid URI supplied [string:private] => [code:protected] => 0 [file:protected] => C:\xampp\htdocs\link_checker\library\Zend\Uri \Http.php [line:protected] => 97 [trace:private] => Array .... Is anyone can suggest .. what should i do in order to request such URLs .. Thanks View this message in context: Zend_Uri fails / throw exception while ..
Sent from the Zend Framework mailing list archive at Nabble.com.


--

Simon Mundy | Director | PEPTOLAB

""" " "" """""" "" "" """"""" " "" """"" " """"" "  """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124
http://www.peptolab.com

Reply via email to