Example #1
0
 /**
  * @return \Zend_Http_Client
  */
 private function getHttpClient()
 {
     $client = new \Zend_Http_Client();
     $client->setConfig(array('maxredirects' => 0, 'timeout' => 30));
     $client->setMethod(\Zend_Http_Client::POST);
     $client->setParameterPost(array('login' => $this->config->getLogin(), 'password' => $this->config->getPassword(), 'companyid' => $this->config->getCompanyId()));
     return $client;
 }