title: how to do request in HttpClient?
body: <p>I have write REST wed service using jersey framework and java.
  If user want to request HttpGet in curl he need to write like:</p>
  
  <pre><code>curl -u username:password -H "Content-Type:application/...." http://localhost:8080/project/user
  </code></pre>
  
  <p>Now, I am implement android which will call web service.
  Do anyone know how to use HttpClient in android to call web service?
  How to set username  and password in HttpClient in order to match with curl command <code>-u username:password</code>?</p>
  
  <p>thanks</p>