I am trying to use Apache HTTP components to provide my android application with live currency rates. I have the following code to import these but have errors
import org.apache.http.HttpEntity;
import org.apache.http.ParseException;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import org.json.JSONException;
import org.json.JSONObject;
I have tried the following JAR http://www.java2s.com/Code/Jar/h/Downloadhttpclient403jar.htm with no luck. Is there any other way of implementing this?
HttpURLConnection