err.setSampleLabel("Error: " + url.toString());
return err;
</BUG>
} catch (IOException e) {
<BUG>res.sampleEnd();
HTTPSampleResult err = errorResult(e, res);
err.setSampleLabel("Error: " + url.toString());
return err;
</BUG>
} finally {

cacheManager.saveDetails(httpMethod, res);
}
res = resultProcessing(areFollowingRedirect, frameDepth, res);
log.debug("End : sample");
return res;
} catch (IllegalArgumentException e) { // e.g. some kinds of invalid URL
res.sampleEnd();
errorResult(e, res);
return res;
} catch (IOException e) {
res.sampleEnd();
errorResult(e, res);
return res;
} finally {
