I want to retrieve html source code from a mobile version website,
String url = "m.kitco.com";
HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet(url);
HttpResponse response = client.execute(request);
InputStream in = response.getEntity().getContent();
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
however, the source code that I could get was only the full site source code instead of mobile version. It seems like the web server automatically forward the link to full site.
How can I force it to retrieve the mobile website html source code?