title: cURL Adapter uses in zend framework 1.12
body: <p>I have a project written in plain php by using curl and it’s worked. Now I want to move this project to zend framework 1 (and I am new to zend). I have tried to connect by Zend_Http_Client_Adapter_Curl and I did not get enough information what I need
          My plain php code:
          function server_com($data, $api_host) { </p>
  
  <pre><code>       $xml = "xml=".($data); 
         $host = $api_host; 
         //curl initialization
         $cpt = curl_init(); 
         //curl url
         curl_setopt($cpt, CURLOPT_URL, "https://$host"); 
         curl_setopt($cpt, CURLOPT_SSL_VERIFYHOST, 1); 
         //Return the response as a string instead of outputting it to the screen
         curl_setopt($cpt, CURLOPT_RETURNTRANSFER, 1); 
         curl_setopt($cpt, CURLOPT_SSL_VERIFYPEER, FALSE); 
         // set this true if you want to send a POST request
         curl_setopt($cpt, CURLOPT_POST, 1);
         //Array of data to POST in request
         curl_setopt($cpt, CURLOPT_POSTFIELDS, array('xml' =&gt; $data)); 
         //curl execution  
         $result = curl_exec($cpt);
  
          RETURN $result; 
      }
      $data = '&lt;?xml version="1.0" encoding="utf-8"?&gt;
          &lt;Request version="1.0"&gt;
              &lt;Export mode="UPDATE" type="COREDATA"&gt;
                  &lt;Login&gt;
                      &lt;User&gt;user&lt;/User&gt;
                      &lt;Password&gt;password&lt;/Password&gt;
                  &lt;/Login&gt;
              &lt;/Export&gt;
          &lt;/Request&gt;
      ';
      // specifies the URL for the request
      $api_host = "demo.api.net/api/";
      $result = server_com($data, $api_host);
      $fh = fopen("va.xml", "w");
      fwrite($fh,$result);
      fclose($fh);
  </code></pre>
  
  <p>here i am creating va.xml file after query resquest. now, I want this equivalent to Zend framework 1 by using cURL adapter, Can someone please help? I have tried to use zend http client (with cURL adapter) in zend project to replace the cULR part of old php project. I got stuck-up last 2 days. I would really appreciate help in this regard.</p>