title: Multipart form-data using zend framework
body: <p>i am trying to use zend framework to post multipart/form-data , to send xml and files </p>
  
  <pre><code>$uri = 'http://...';
  
  $update = new Zend_Http_Client();
  $update-&gt;setUri($uri);
  $update-&gt;setHeaders('Content-Type: multipart/form-data');
  
  $xml = ' &lt;man&gt;'.
           '&lt;man-id&gt;12&lt;/man-id&gt;'.
           '&lt;man-name&gt;Smith&lt;/man-name&gt;'.
           '&lt;man-tall&gt;186&lt;/man-tall&gt;'.
         '&lt;/man&gt;';
  
  $response = $update-&gt;encodeFormData('a','file', $xml,'./src/server/TVP.jpg',array("Content-Transfer-Encoding" =&gt; "binary"));
  </code></pre>
  
  <p>How i can exactly use this function ( encodeFormData() ) to do this post ???
  or if there any other way that i can use to post ???</p>