//Following code works fine but read\'s the source code as well as the content, I just need to read the content Thanks for the help.//
package t.n.e;
import
Well, if you just need the content, why won't you simplify it this way:
private InputStream OpenHttpConnection(String strURL)
throws IOException {
URLConnection conn = null;
InputStream inputStream = null;
URL url = new URL(strURL);
conn = url.openConnection();
HttpURLConnection httpConn = (HttpURLConnection) conn;
httpConn.setRequestMethod("GET");
httpConn.connect();
if (httpConn.getResponseCode() == HttpURLConnection.HTTP_OK) {
inputStream = httpConn.getInputStream();
}
return inputStream;
}
And then just read the stream?