title: Java Apache HttpPost, setEntity replace or append
body: <p>in HttpPost, this appends to the header</p>
  
  <pre><code>httppost.setHeader("User-Agent", "AFHttpClient/1.0");
          httppost.setHeader("X-Requested-With", "XMLHttpRequest");
          httppost.setHeader("Accept", "application/json");
  </code></pre>
  
  <p>where each <code>setHeader</code> simply adds to the header, instead of replacing the header with a new header</p>
  
  <p>I am wondering about the <code>setEntity</code> method.</p>
  
  <p>Does calling the setEntity method sequentially simply add and append data to the entity, or replace it?</p>