title: Android Asynchronous Http Client (Loopj) POST request with headers and body
body: <p>I am working on an android application, I am using "Android Asynchronous Http Client" (Loopj) library in order to handle all the requests to the server.</p>
  
  <p>I need to send a POST request with headers and JSON body.</p>
  
  <p>By looking to the available POST methods in the AsynchHttpClient.java I found those:</p>
  
  <pre><code>public void post(Context context, String url, Header[] headers, RequestParams params, String contentType, AsyncHttpResponseHandler responseHandler)
  
  public void post(Context context, String url, Header[] headers, HttpEntity entity, String contentType, AsyncHttpResponseHandler responseHandler)
  </code></pre>
  
  <p>Which one should I use? What is the difference between <code>Header[]</code>, <code>RequestParams</code> and <code>HttpEntity</code>?
  Which one is considered to hold the headers and which the body of the request?</p>
  
  <p>Thanks for any clarification</p>