Im trying to download website content from the website https://songbpm.com/tiesto/red+lights however due to the certificate issue the content is not being received The content will be later used to obtain the bpm of certain songs from an android app.
code for making the connection
AsyncHttpPost post = new AsyncHttpPost();
post.execute("https://songbpm.com/tiesto/red+lights");
TextView tv = (TextView)findViewById(R.id.textview1);
tv.setText("Hello,"+post.get().toString()+",");
async http post class as it is in a separate thread
byte[] result = null;
String str = "";
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost(params[0]);
try {
HttpResponse response = client.execute(post);
StatusLine statusLine = response.getStatusLine();
if(statusLine.getStatusCode() == HttpURLConnection.HTTP_OK){
result = EntityUtils.toByteArray(response.getEntity());
str = new String(result, "UTF-8");
}
}