formPost, httpConn.getState());
assertTrue("Saw HTTP_MOVED_TEMP("+responseCode+")",
responseCode == HttpURLConnection.HTTP_MOVED_TEMP);
// Follow the redirect to the index.html page
Header location = formPost.getResponseHeader("Location");
String indexURI = location.getValue();
GetMethod warIndex = new GetMethod(indexURI);
responseCode = httpConn.executeMethod(warIndex.getHostConfiguration(),
warIndex, httpConn.getState());
assertTrue("Get OK", responseCode == HttpURLConnection.HTTP_OK);
String body = warIndex.getResponseBodyAsString();