I am trying to make some http request with parameters. Currently I am using
 private List<NameValuePair> mParams = new ArrayList<NameValuePair>();
 private DefaultHttpClient mHttpClient;
 private HttpPost mHttpPost;
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 
HttpClientBuilder.create().build(); but android studio cannot import the libraries for HttpClientBuilder
  I tried downloading and adding  this jar dependency   but still doesn't work.   This is my code
        mHttpClient = new DefaultHttpClient();
        mHttpPost = new HttpPost(url);
        mParams.add(new BasicNameValuePair("key", value));
        mHttpPost.setEntity(new UrlEncodedFormEntity(mParams));
All these lines are showing deprecated warning, which is the alternative method for this?
 
     
     
     
     
     
     
    