}
}
while (true) {
// 计算是否需要跳转
int statusCode = 0;
statusCode = httpClient.execute(httpMethod);
if (statusCode == HttpServletResponse.SC_MOVED_PERMANENTLY
|| statusCode == HttpServletResponse.SC_MOVED_TEMPORARILY) {
String locationHeader = httpClient.getResponseHeader("Location");
if (locationHeader != null) {
httpMethod = new GetMethod(locationHeader);