to initialize the proxy adpater before you call the xmlrpc.
http://framework.zend.com/manual/en/zend.http.client.adapters.html#zend.http.client.adapters.proxy
Heres one I use:
Zend_Loader::loadClass( 'Zend_Http_Client' );
// Use the proxy if we are local people...
$config = array(
'adapter' => 'Zend_Http_Client_Adapter_Proxy',
'proxy_host' => '10.1.1.1',
'proxy_port' => 8080
);
// Instantiate a client object -
Zend_Service_Akismet will use this
$client = new
Zend_Http_Client('http://rest.akismet.com', $config);
}
$akismet = new Zend_Service_Akismet( $wpAPIKey, $blogURL );
2008/12/4 Brent Clements <brent.clements@gmail.com>:
> Hi All,
>
> I have searched forums, the mailing list, and google and have come up short.
> I know this has to be a common issue but can't find any information on how
> to do it.
>
> How does one utilize a zend xmlrpc client behind a firewall or proxy? How do
> I set my proxy settings?
>
> Thanks!
> BC
--
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------
没有评论:
发表评论