title: Http methods deprecated warning in android studio
body: <p>I am trying to make some http request with parameters. Currently I am using </p>
  
  <pre><code> private List&lt;NameValuePair&gt; mParams = new ArrayList&lt;NameValuePair&gt;();
   private DefaultHttpClient mHttpClient;
   private HttpPost mHttpPost;
  </code></pre>
  
  <p>these for making http request and it is working fine. But the problem is android studio is showing deprecated warning for all
      these 3 . I tried by using 
  <code>HttpClientBuilder.create().build();</code> but android studio cannot import the libraries for <code>HttpClientBuilder</code>
    I tried downloading and adding  <a href="http://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient/4.0-alpha4" rel="nofollow">this jar dependency</a>   but still doesn't work.   This is my code</p>
  
  <pre><code>        mHttpClient = new DefaultHttpClient();
          mHttpPost = new HttpPost(url);
          mParams.add(new BasicNameValuePair("key", value));
          mHttpPost.setEntity(new UrlEncodedFormEntity(mParams));
  </code></pre>
  
  <p>All these lines are showing deprecated warning, which is the alternative method for this?</p>