I’m using something like this:
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)); String line = null;
while ((line = reader.readLine()) != null) {
str.append(line);
}
to get the source code of particular website. My problem is that some pages have age checking, is there anyway to bypass this? or inject javascript code?
Thank you
There is a form in the HTML :
you have to do an HttpPost request to the URL
http://store.steampowered.com/agecheck/app/72850/You have to provide all necessary values for the following input fields:
Then you will get the HTML of the main page.