I want to retrieve value of a hidden filed which changes with every request send to server. For e.g when i first access the page the sessid=90334
and at the next page its like sessid=78204
. The pagesource contains a tag like this <input type="hidden" name="sessid" value="69529">
. I know how to read the response. I am currently using following code to read the response
BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
StringBuilder response = new StringBuilder();
String line;
while ((line = rd.readLine()) != null) {
response.append(line);
}
Please tell me how can i read the changed value with each request?