zend-http-client

Remote Address Parameter in Zend_Http_Client

Hi Am developing a public site that uses the Zend_Http_Client to access remote logic.Is there a property/way in the Client adapter that I could set the remote address of the user browsing the site? Currently am using this workaround which combines both remote address and remote useragent. $client = new Zend_Http_Client(); $clie...

Curl GET request through Zend_Http_Client

Hi, I am trying to make a GET request to gowalla spots by Zend_Http_Client (cURL adapter) here is my class: class Application_Model_Gowalla { private $_config; private $options; private $array; private $json; public function __construct() { $conf = Zend_Registry::get('config'); $this->_confi...

Zend Framework 1.10: Cookies aren't stored

Hi, I'm trying to with Cookies and Zend Framework 1.10. This is my code: $zendCookie = new Zend_Http_Cookie('foo', 'bar', 'localhost', time() + 60 * 60 * 24 * 30); $client = new Zend_Http_Client(); $client->setCookie($zendCookie); But the cookies aren't stored. I checked it with Firecookie Firefox's extension. What's wrong? Thank yo...

Zend_Uri_Http: Invalid URI supplied when using Google Chart URI?

My application uses Google Charts and using HTTPS. I need to display the Google Charts as "secure" images, otherwise Internet Explorer will complain about displaying insecure content. So, I am trying to download them (then link to the local file) using a Zend_Http_Client request, but I can't seem to do it. The URI should be valid since ...

CURLOPT_FOLLOWLOCATION equivalent for socket adapter in Zend_Http_client

I would like to use the socket adapter instead of Curl for my code but however this the problem i am facing. (case 1 :) I am querying a server for response using Zend_http_client (default socket adapter) and I am getting a 404 error, (case 2 :) while, for the same server as above, I am getting a response back when using CURL adapter wi...