$client = new Zend_Http_Client('http://example.com/api'); $client->setMethod(Zend_Http_Client::GET); $response = $client->request();
$client = new Zend_Http_Client('http://example.com/api'); $client->setMethod(Zend_Http_Client::POST); $client->setParameterPost(array( 'name' => 'John', 'age' => 30 )); $response = $client->request();Package library: Zend Framework.